Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created August 14, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luandevpro/fb6782476bca22c1b0b544289595397c to your computer and use it in GitHub Desktop.
Save luandevpro/fb6782476bca22c1b0b544289595397c to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: canary
spec:
minReadySeconds: 10
replicas: 1
selector:
matchLabels:
name: app
template:
metadata:
labels:
name: app
version: '2.0.0'
spec:
containers:
- name: application
image: learnk8s/app:2.0.0
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 1
timeoutSeconds: 1
periodSeconds: 5
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 1
timeoutSeconds: 1
periodSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment