From e89b47c7ee04065df4a904ade851959db190e1b2 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Mon, 1 Jul 2019 23:38:37 +0300 Subject: [PATCH] Add nginx stub metrics if health check enabled (#4938) Change-Id: Iac90beef20e63fb4a539f91836231469c573f402 --- roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2 b/roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2 index bdd830d7d..862a7c6db 100644 --- a/roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2 +++ b/roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2 @@ -45,6 +45,10 @@ http { access_log off; return 200; } + location /stub_status { + stub_status on; + access_log off; + } } {% endif %} }