You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
414 B

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: nginx-deployment
  5. namespace: web-test
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: nginx-deployment
  10. replicas: 3 # tells deployment to run 3 pods matching the template
  11. template:
  12. metadata:
  13. labels:
  14. app: nginx-deployment
  15. spec:
  16. containers:
  17. - name: nginx
  18. image: nginx:latest
  19. ports:
  20. - containerPort: 80