apiVersion: apps/v1 kind: Deployment metadata: name: web-app-deployment namespace: my-app spec: replicas: 2 selector: matchLabels: app: web-app template: metadata: labels: app: web-app spec: containers: - name: web-app-container image: antonin193/simple-web-app:latest imagePullPolicy: Always ports: - containerPort: 5000 env: - name: DB_HOST value: postgres - name: DB_PORT value: "5432" - name: DB_NAME value: postgres - name: DB_USER value: postgres - name: DB_PASS value: postgres resources: requests: memory: "64Mi" cpu: "100m" limits: memory: "128Mi" cpu: "200m" readinessProbe: httpGet: path: / port: 5000 initialDelaySeconds: 15 periodSeconds: 10 livenessProbe: httpGet: path: / port: 5000 initialDelaySeconds: 20 periodSeconds: 20