Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. kubectl apply -f MY_DEPLOYMENT.yaml
  2.  
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. name: web-service-rf
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: web-service-rf
  11. replicas: 2 # tells deployment to run 2 pods matching the template
  12. strategy:
  13. rollingUpdate:
  14. maxSurge: 4
  15. maxUnavailable: 0%
  16.  
  17. livenessProbe:
  18. httpGet:
  19. path: /health/liveness
  20. port: 80
  21. initialDelaySeconds: 5
  22. periodSeconds: 3
  23. readinessProbe:
  24. httpGet:
  25. path: /health/readiness
  26. port: 80
  27. initialDelaySeconds: 5
  28. periodSeconds: 5
  29. successThreshold: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement