diff --git a/k8s/configmap.yaml b/k8s/configmap.yaml new file mode 100644 index 0000000..f435ea3 --- /dev/null +++ b/k8s/configmap.yaml @@ -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 diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index c9a0f2d..fb87d98 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -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 \ No newline at end of file diff --git a/k8s/service.yaml b/k8s/service.yaml index c5b1e30..3369de7 100644 --- a/k8s/service.yaml +++ b/k8s/service.yaml @@ -8,7 +8,7 @@ metadata: spec: ports: - name: input-service - port: 8080 + port: 80 targetPort: 8080 protocol: TCP selector: diff --git a/src/config.py b/src/config.py index c7bf615..20f34db 100644 --- a/src/config.py +++ b/src/config.py @@ -32,4 +32,4 @@ POSTGRES_USERNAME = os.getenv("INPUT_POSTGRES_USERNAME", "input-service") POSTGRES_PASSWORD = os.getenv("INPUT_POSTGRES_PASSWORD", "input-service") POSTGRES_DB = os.getenv("INPUT_POSTGRES_DB", "input-service") -STORAGE_HOSTNAME = os.getenv("INPUT_STORAGE_HOSTNAME", "localhost:8042") \ No newline at end of file +STORAGE_HOSTNAME = os.getenv("INPUT_STORAGE_HOSTNAME", "localhost:8042")