Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: nginx-deployment
  5. spec:
  6. selector:
  7. matchLabels:
  8. app: nginx
  9. replicas: 2 # tells deployment to run 2 pods matching the template
  10. template: # create pods using pod definition in this template
  11. metadata:
  12. # unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
  13. # generated from the deployment name
  14. labels:
  15. app: nginx
  16. spec:
  17. containers:
  18. - name: nginx
  19. image: nginx:1.7.9
  20. ports:
  21. - containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement