project layout done
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-25 01:19:22 +01:00
parent 265d43f79b
commit 03bf58bab3
8 changed files with 177 additions and 13 deletions

30
k8s/deployment.yaml Normal file
View File

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: input-service
namespace: birbnetes
labels:
app: input-service
spec:
replicas: 1
selector:
matchLabels:
app: input-service
strategy:
type: Recreate
template:
metadata:
labels:
app: input-service
spec:
containers:
- image:
name: registry.kmlabz.com/tormakris/input-service
env:
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: sentry-dsn
key: input-service
ports:
- containerPort: 8080

16
k8s/service.yaml Normal file
View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: input-service
namespace: birbnetes
labels:
app: input-service
spec:
ports:
- name: input-service
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: input-service
type: ClusterIP