apiVersion: apps/v1 kind: Deployment metadata: name: moj-servis namespace: student-vucicj spec: replicas: 3 selector: matchLabels: app: moj-servis template: metadata: labels: app: moj-servis spec: containers: - name: moj-servis image: git.fpmoz.sum.ba/vucicj/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" cpu: "200m" limits: memory: "128Mi" cpu: "400m" livenessProbe: httpGet: path: /health port: 8000 initialDelaySeconds: 20 periodSeconds: 15 timeoutSeconds: 3 failureThreshold: 3 readinessProbe: httpGet: path: /health port: 8000 initialDelaySeconds: 20 periodSeconds: 15 timeoutSeconds: 2 failureThreshold: 2