Merge pull request #1749 from aledbf/cloud-health-check

Automatic merge from submit-queue

[nginx-ingress-controller] Readiness probe that works behind a CP lb

fixes #1507
This commit is contained in:
Kubernetes Submit Queue 2016-09-26 15:44:12 -07:00 committed by GitHub
commit 741ac710cd
16 changed files with 148 additions and 67 deletions

View file

@ -267,6 +267,12 @@ http {
{{ end }}
{{ if eq $server.Name "_" }}
# health checks in cloud providers require the use of port 80
location {{ $cfg.healthzUrl }} {
access_log off;
return 200;
}
# this is required to avoid error if nginx is being monitored
# with an external software (like sysdig)
location /nginx_status {