2016-09-28 11:05:08 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: nginx-proxy
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2016-11-09 13:15:27 +00:00
|
|
|
labels:
|
2019-04-08 09:02:29 +00:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2016-11-09 13:15:27 +00:00
|
|
|
k8s-app: kube-nginx
|
2016-09-28 11:05:08 +00:00
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
2018-06-05 11:15:20 +00:00
|
|
|
nodeSelector:
|
|
|
|
beta.kubernetes.io/os: linux
|
2018-10-16 22:33:30 +00:00
|
|
|
{% if kube_version is version('v1.11.1', '>=') %}
|
2018-09-25 14:50:22 +00:00
|
|
|
priorityClassName: system-node-critical
|
|
|
|
{% endif %}
|
2016-09-28 11:05:08 +00:00
|
|
|
containers:
|
|
|
|
- name: nginx-proxy
|
|
|
|
image: {{ nginx_image_repo }}:{{ nginx_image_tag }}
|
2016-11-22 15:16:04 +00:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2016-12-23 14:44:44 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: {{ nginx_cpu_requests }}
|
|
|
|
memory: {{ nginx_memory_requests }}
|
2016-09-28 11:05:08 +00:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
2019-03-28 13:20:46 +00:00
|
|
|
{% if nginx_kube_apiserver_healthcheck_port is defined -%}
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: {{ nginx_kube_apiserver_healthcheck_port }}
|
2019-04-08 09:02:29 +00:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: {{ nginx_kube_apiserver_healthcheck_port }}
|
2019-03-28 13:20:46 +00:00
|
|
|
{% endif -%}
|
2016-09-28 11:05:08 +00:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/nginx
|
|
|
|
name: etc-nginx
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- name: etc-nginx
|
|
|
|
hostPath:
|
2018-10-11 13:33:18 +00:00
|
|
|
path: {{ nginx_config_dir }}
|