add: configmap, ingress + update deployment with env refs
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# k8s/moj-servis/deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -18,6 +19,20 @@ spec:
|
||||
image: git.fpmoz.sum.ba/marijanela218/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"
|
||||
|
||||
Reference in New Issue
Block a user