2016-09-28 19:05:08 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: nginx-proxy
|
2016-12-13 18:43:06 +08:00
|
|
|
namespace: {{system_namespace}}
|
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-12-23 22:44:44 +08:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: {{ nginx_cpu_limit }}
|
|
|
|
memory: {{ nginx_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ nginx_cpu_requests }}
|
|
|
|
memory: {{ nginx_memory_requests }}
|
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
|