SHOW:
|
|
- or go back to the newest paste.
| 1 | apiVersion: apps/v1 | |
| 2 | kind: Deployment | |
| 3 | metadata: | |
| 4 | name: hello-canary | |
| 5 | spec: | |
| 6 | replicas: 1 | |
| 7 | selector: | |
| 8 | matchLabels: | |
| 9 | app: hello | |
| 10 | track: canary | |
| 11 | template: | |
| 12 | metadata: | |
| 13 | labels: | |
| 14 | app: hello | |
| 15 | track: canary | |
| 16 | version: 2.0.0 | |
| 17 | spec: | |
| 18 | containers: | |
| 19 | - name: hello | |
| 20 | image: kelseyhightower/hello:2.0.0 | |
| 21 | ports: | |
| 22 | - name: http | |
| 23 | containerPort: 80 | |
| 24 | - name: health | |
| 25 | containerPort: 81 | |
| 26 | resources: | |
| 27 | limits: | |
| 28 | cpu: 0.2 | |
| 29 | memory: 10Mi | |
| 30 | livenessProbe: | |
| 31 | httpGet: | |
| 32 | path: /healthz | |
| 33 | port: 81 | |
| 34 | scheme: HTTP | |
| 35 | initialDelaySeconds: 5 | |
| 36 | periodSeconds: 15 | |
| 37 | timeoutSeconds: 5 | |
| 38 | readinessProbe: | |
| 39 | httpGet: | |
| 40 | path: /readiness | |
| 41 | port: 81 | |
| 42 | scheme: HTTP | |
| 43 | initialDelaySeconds: 5 | |
| 44 | timeoutSeconds: 1 |