Skip to content

Commit

Permalink
add /healthz for health check (kubernetes#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qing Hao authored and GitHub Enterprise committed Jul 17, 2019
1 parent 77fa364 commit d0d72ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rootfs/opt/ibm/router/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ http {
## end server {{ $server.Hostname }}

{{ end }}

}


Expand Down Expand Up @@ -306,6 +307,12 @@ http {
return 404;
}

# For NGINX healthcheck and access to nginx stats
location /healthz {
access_log off;
return 200;
}

{{ end }}

{{ end }}

0 comments on commit d0d72ac

Please sign in to comment.