add: configmap, ingress + update deployment with env refs

This commit is contained in:
2026-04-07 11:58:12 +02:00
parent 11280e50f5
commit c1148eb882
3 changed files with 42 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
# k8s/moj-servis/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -19,6 +18,20 @@ spec:
image: git.fpmoz.sum.ba/martabulic/moj-servis:1.0
ports:
- containerPort: 8000
envFrom: # <-- NOVO
- configMapRef:
name: moj-servis-config # <-- ConfigMap
env: # <-- NOVO
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: moj-servis-secret # <-- Secret
key: DB_PASSWORD
- name: API_KEY
valueFrom:
secretKeyRef:
name: moj-servis-secret
key: API_KEY
resources:
requests:
memory: "64Mi"