Skip to content

Instantly share code, notes, and snippets.

@EvilFreelancer
Created April 25, 2023 23:09
Show Gist options
  • Select an option

  • Save EvilFreelancer/cd45b589b1ef90dcde61471c188549ac to your computer and use it in GitHub Desktop.

Select an option

Save EvilFreelancer/cd45b589b1ef90dcde61471c188549ac to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-container
image: my-image:v1
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 80
initialDelaySeconds: 10
periodSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment