272b506802
Also place in global vars and do not repeat the kube_*_config_dir and kube_namespace vars for better code maintainability and UX. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
23 lines
491 B
Django/Jinja
23 lines
491 B
Django/Jinja
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: nginx-proxy
|
|
namespace: {{system_namespace}}
|
|
labels:
|
|
k8s-app: kube-nginx
|
|
spec:
|
|
hostNetwork: true
|
|
containers:
|
|
- name: nginx-proxy
|
|
image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- mountPath: /etc/nginx
|
|
name: etc-nginx
|
|
readOnly: true
|
|
volumes:
|
|
- name: etc-nginx
|
|
hostPath:
|
|
path: /etc/nginx
|