deployment-after.yaml 456 B

12345678910111213141516171819202122232425262728
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: test-deployment-retainkeys
  5. labels:
  6. app: nginx
  7. spec:
  8. strategy:
  9. type: Recreate
  10. replicas: 1
  11. selector:
  12. matchLabels:
  13. app: nginx
  14. template:
  15. metadata:
  16. labels:
  17. app: nginx
  18. spec:
  19. containers:
  20. - name: nginx
  21. image: nginx
  22. ports:
  23. - containerPort: 80
  24. volumes:
  25. - name: test-volume
  26. hostPath:
  27. path: /data