chore(nginx): default server for helath checks
Creating separate health check server, as not to pollute the prom metrics. Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
fce92fd491
commit
760deec2db
1 changed files with 8 additions and 0 deletions
|
|
@ -138,9 +138,17 @@ data:
|
|||
default $http_x_forwarded_proto;
|
||||
'' $scheme;
|
||||
}
|
||||
# Default server for helath check
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80;
|
||||
location /healthz {
|
||||
return 200 'OK';
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name {{ .Values.global.domainName }};
|
||||
{{ .Values.customServerConfigs }}
|
||||
include /etc/nginx/conf.d/location.list;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue