2016-09-28 19:05:08 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: nginx-proxy
|
|
|
|
namespace: kube-system
|
2016-11-09 21:15:27 +08:00
|
|
|
labels:
|
|
|
|
k8s-app: kube-nginx
|
2016-09-28 19:05:08 +08:00
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
|
|
|
- name: nginx-proxy
|
|
|
|
image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
|
2016-11-22 23:16:04 +08:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2016-09-28 19:05:08 +08:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/nginx
|
|
|
|
name: etc-nginx
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- name: etc-nginx
|
|
|
|
hostPath:
|
|
|
|
path: /etc/nginx
|