apiVersion: apps/v1 kind: Deployment metadata: name: step3-web labels: app: step3-web spec: replicas: 2 strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 0 maxSurge: 1 selector: matchLabels: app: step3-web template: metadata: labels: app: step3-web spec: containers: - name: web image: step3-web:latest imagePullPolicy: IfNotPresent ports: - containerPort: 8080 resources: requests: cpu: 50m memory: 64Mi limits: cpu: 250m memory: 128Mi readinessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 3 periodSeconds: 10 timeoutSeconds: 2 livenessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 10 periodSeconds: 20 timeoutSeconds: 2