Advertisement
sergio_educacionit

nginx-deployment.yaml

Dec 16th, 2023
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: nginx-deployment
  5. namespace: default
  6. labels:
  7. app: nginx-deployment
  8. spec:
  9. revisionHistoryLimit: 2
  10. strategy:
  11. type: RollingUpdate
  12. replicas: 3
  13. selector:
  14. matchLabels:
  15. app: nginx-dp
  16. template:
  17. metadata:
  18. labels:
  19. app: nginx-dp
  20. spec:
  21. containers:
  22. - image: nginx:1.18
  23. name: nginx
  24. ports:
  25. - name: http
  26. containerPort: 80
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement