Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created August 14, 2020 07:24
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/8fb4fb08ce459a01b24eb44cb743065e to your computer and use it in GitHub Desktop.
Save luandevpro/8fb4fb08ce459a01b24eb44cb743065e to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: green
spec:
minReadySeconds: 10
replicas: 3
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