nginx-https-deploy.yml 870 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: nginx-https
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app: nginx-https
  10. template:
  11. metadata:
  12. labels:
  13. app: nginx-https
  14. spec:
  15. containers:
  16. - name: nginx-https
  17. image: nginx
  18. ports:
  19. - name: secureweb
  20. containerPort: 443
  21. volumeMounts:
  22. - name: nginx-https-cm
  23. mountPath: /etc/nginx
  24. - name: nginx-https-secret
  25. mountPath: /etc/nginx/ssl
  26. readOnly: true
  27. - name: nginx-https-vol
  28. mountPath: /usr/share/nginx/html
  29. volumes:
  30. - name: nginx-https-cm
  31. configMap:
  32. name: nginx-https-cm
  33. - name: nginx-https-secret
  34. secret:
  35. secretName: nginx-https-secret
  36. - name: nginx-https-vol
  37. hostPath:
  38. path: /var/nginxserver