Added livenessProbe for local nginx apiserver proxy liveness probe (#4222)

* Added configurable local apiserver proxy liveness probe

* Enable API LB healthcheck by default

* Fix template spacing and moved healthz location to nginx http section

* Fix healthcheck listen address to allow kubelet request healthcheck
This commit is contained in:
Dmitry Chepurovskiy
2019-03-28 16:20:46 +03:00
committed by Kubernetes Prow Robot
parent 0a3cf1a087
commit 669ab10c17
3 changed files with 21 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ bin_dir: /usr/local/bin
## Local loadbalancer should use this port
## And must be set port 6443
nginx_kube_apiserver_port: 6443
## If nginx_kube_apiserver_healthcheck_port variable defined, enables proxy liveness check.
nginx_kube_apiserver_healthcheck_port: 8081
### OTHER OPTIONAL VARIABLES
## For some things, kubelet needs to load kernel modules. For example, dynamic kernel services are needed