create specific k8s config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-03-31 17:54:14 +02:00
parent bc81a65fea
commit 433dc2b74b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
4 changed files with 26 additions and 8 deletions

21
k8s/configmap.yaml Normal file
View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: input-service
labels:
app: input-service
namespace: birbnetes
data:
SENTRY_DSN: input-service
RELEASE_ID: luna-k8s
RELEASEMODE: release
RABBITMQ_HOST: birb-rabbitmq
RABBITMQ_EXCHANGE: ""
RABBITMQ_QUEUE: wave-extract
RABBITMQ_USERNAME: user
RABBITMQ_PASSWORD: 1wZVQnP5vy
POSTGRES_HOSTNAME: input-postgres
POSTGRES_USERNAME: input-service
POSTGRES_PASSWORD: input-service-supersecret
POSTGRES_DB: input-service
STORAGE_HOSTNAME: storage-service

View File

@ -20,11 +20,8 @@ spec:
containers:
- image:
name: registry.kmlabz.com/tormakris/input-service
env:
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: sentry-dsn
key: input-service
envFrom:
- configMapRef:
name: input-service
ports:
- containerPort: 8080

View File

@ -8,7 +8,7 @@ metadata:
spec:
ports:
- name: input-service
port: 8080
port: 80
targetPort: 8080
protocol: TCP
selector: