Add HAProxy as internal loadbalancer (#4480)

This commit is contained in:
Andreas Krüger
2019-04-10 14:56:18 +02:00
committed by Kubernetes Prow Robot
parent 27958e4247
commit 5e0249ae7c
14 changed files with 163 additions and 23 deletions

View File

@@ -19,19 +19,19 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }}
resources:
requests:
cpu: {{ nginx_cpu_requests }}
memory: {{ nginx_memory_requests }}
cpu: {{ loadbalancer_apiserver_cpu_requests }}
memory: {{ loadbalancer_apiserver_memory_requests }}
securityContext:
privileged: true
{% if nginx_kube_apiserver_healthcheck_port is defined -%}
{% if loadbalancer_apiserver_healthcheck_port is defined -%}
livenessProbe:
httpGet:
path: /healthz
port: {{ nginx_kube_apiserver_healthcheck_port }}
port: {{ loadbalancer_apiserver_healthcheck_port }}
readinessProbe:
httpGet:
path: /healthz
port: {{ nginx_kube_apiserver_healthcheck_port }}
port: {{ loadbalancer_apiserver_healthcheck_port }}
{% endif -%}
volumeMounts:
- mountPath: /etc/nginx