Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kubectl apply -f MY_DEPLOYMENT.yaml
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: web-service-rf
- spec:
- selector:
- matchLabels:
- app: web-service-rf
- replicas: 2 # tells deployment to run 2 pods matching the template
- strategy:
- rollingUpdate:
- maxSurge: 4
- maxUnavailable: 0%
- livenessProbe:
- httpGet:
- path: /health/liveness
- port: 80
- initialDelaySeconds: 5
- periodSeconds: 3
- readinessProbe:
- httpGet:
- path: /health/readiness
- port: 80
- initialDelaySeconds: 5
- periodSeconds: 5
- successThreshold: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement