scale-deploy-2.yaml 436 B

1234567891011121314151617181920212223242526
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. labels:
  5. run: hello
  6. name: scale-2
  7. spec:
  8. replicas: 1
  9. selector:
  10. matchLabels:
  11. run: hello
  12. strategy:
  13. rollingUpdate:
  14. maxSurge: 1
  15. maxUnavailable: 1
  16. type: RollingUpdate
  17. template:
  18. metadata:
  19. labels:
  20. run: hello
  21. spec:
  22. containers:
  23. - image: aronchick/hello-node:2.0
  24. imagePullPolicy: IfNotPresent
  25. name: hello