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.

30 lines
694 B

  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: nginx-proxy
  5. namespace: {{system_namespace}}
  6. labels:
  7. k8s-app: kube-nginx
  8. spec:
  9. hostNetwork: true
  10. containers:
  11. - name: nginx-proxy
  12. image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
  13. imagePullPolicy: {{ k8s_image_pull_policy }}
  14. resources:
  15. limits:
  16. cpu: {{ nginx_cpu_limit }}
  17. memory: {{ nginx_memory_limit }}
  18. requests:
  19. cpu: {{ nginx_cpu_requests }}
  20. memory: {{ nginx_memory_requests }}
  21. securityContext:
  22. privileged: true
  23. volumeMounts:
  24. - mountPath: /etc/nginx
  25. name: etc-nginx
  26. readOnly: true
  27. volumes:
  28. - name: etc-nginx
  29. hostPath:
  30. path: /etc/nginx