apiVersion: apps/v1 kind: Deployment metadata: name: nginx-canary namespace: nginx-canary labels: app: nginx-canary track: canary version: v2.1.0-broken spec: replicas: 2 selector: matchLabels: app: nginx-canary template: metadata: labels: app: nginx-canary track: canary version: v2.1.0-broken spec: containers: - name: nginx image: nginx:1.25-alpine ports: - containerPort: 80 volumeMounts: - name: html mountPath: /usr/share/nginx/html/index.html subPath: index.html - name: html mountPath: /etc/nginx/conf.d/default.conf subPath: nginx.conf resources: requests: cpu: 50m memory: 64Mi limits: cpu: 200m memory: 128Mi readinessProbe: httpGet: path: /healthz-nonexistent port: 80 initialDelaySeconds: 3 periodSeconds: 5 failureThreshold: 2 livenessProbe: httpGet: path: /healthz-nonexistent port: 80 initialDelaySeconds: 5 periodSeconds: 5 failureThreshold: 2 volumes: - name: html configMap: name: nginx-canary-html