Wait until the pod it's running before getting information about it

This commit is contained in:
Manuel de Brito Fontes 2016-04-05 15:15:59 -03:00
parent 0c2e199833
commit cf263c1390
2 changed files with 58 additions and 1 deletions

View file

@ -196,6 +196,18 @@ http {
proxy_pass http://{{ $location.Upstream.Name }};
}
{{ end }}
{{ if eq $server.Name "_" }}
# this is required to avoid error if nginx is being monitored
# with an external software (like sysdig)
location /nginx_status {
allow 127.0.0.1;
deny all;
access_log off;
stub_status on;
}
{{ end }}
{{ template "CUSTOM_ERRORS" $cfg }}
}
{{ end }}