Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: hello-canary
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: hello
- track: canary
- template:
- metadata:
- labels:
- app: hello
- track: canary
- version: 2.0.0
- spec:
- containers:
- - name: hello
- image: kelseyhightower/hello:2.0.0
- ports:
- - name: http
- containerPort: 80
- - name: health
- containerPort: 81
- resources:
- limits:
- cpu: 0.2
- memory: 10Mi
- livenessProbe:
- httpGet:
- path: /healthz
- port: 81
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 15
- timeoutSeconds: 5
- readinessProbe:
- httpGet:
- path: /readiness
- port: 81
- scheme: HTTP
- initialDelaySeconds: 5
- timeoutSeconds: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement