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
|
2019-06-10 12:59:08 +00:00
|
|
|
annotations:
|
|
|
|
nginx-cfg-checksum: "{{ nginx_stat.stat.checksum }}"
|
2016-09-28 11:05:08 +00:00
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
2019-06-05 10:17:56 +00:00
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
2018-06-05 11:15:20 +00:00
|
|
|
nodeSelector:
|
2020-04-17 12:51:06 +00:00
|
|
|
kubernetes.io/os: linux
|
2018-09-25 14:50:22 +00:00
|
|
|
priorityClassName: system-node-critical
|
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:
|
2019-04-10 12:56:18 +00:00
|
|
|
cpu: {{ loadbalancer_apiserver_cpu_requests }}
|
|
|
|
memory: {{ loadbalancer_apiserver_memory_requests }}
|
|
|
|
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
|
2019-03-28 13:20:46 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
2019-04-10 12:56:18 +00:00
|
|
|
port: {{ loadbalancer_apiserver_healthcheck_port }}
|
2019-04-08 09:02:29 +00:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
2019-04-10 12:56:18 +00:00
|
|
|
port: {{ loadbalancer_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 }}
|