Untitled
unknown
plain_text
2 years ago
707 B
11
Indexable
apiVersion: apps/v1
kind: Deployment
metadata:
name: your-deployment
spec:
replicas: 3
selector:
matchLabels:
app: your-app
template:
metadata:
labels:
app: your-app
spec:
containers:
- name: your-container
image: your-image
ports:
- containerPort: 80
livenessProbe:
exec:
command:
- sh
- -c
- '[ -f /tmp/health ]'
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
exec:
command:
- sh
- -c
- '[ -f /tmp/health ]'
initialDelaySeconds: 3
periodSeconds: 5Editor is loading...
Leave a Comment