apiVersion: apps/v1 kind: Deployment metadata: name: insurance-web namespace: insurance labels: app.kubernetes.io/name: insurance-web spec: replicas: 2 revisionHistoryLimit: 3 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 selector: matchLabels: app.kubernetes.io/name: insurance-web template: metadata: labels: app.kubernetes.io/name: insurance-web spec: containers: - name: web image: localhost:5000/insurance/web:latest imagePullPolicy: Always ports: - name: http containerPort: 80 readinessProbe: httpGet: path: /health port: http initialDelaySeconds: 3 periodSeconds: 5 livenessProbe: httpGet: path: /health port: http initialDelaySeconds: 15 periodSeconds: 20 resources: requests: cpu: 50m memory: 64Mi limits: cpu: 300m memory: 256Mi