From 8fee9322ab7bc7836b61152ef180f0f18a306acb Mon Sep 17 00:00:00 2001 From: Mark Burnett Date: Thu, 14 Jun 2018 10:34:42 -0500 Subject: [PATCH] Fix incorrect use of wget in CoreDNS health The previous command created a file in /health, which caused the check to fail after the first run. Change-Id: I2150d40e917567a4072a1565c1b96089f3d6fd2b --- charts/coredns/templates/bin/_probe.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/coredns/templates/bin/_probe.sh.tpl b/charts/coredns/templates/bin/_probe.sh.tpl index 4840735f..bb70ec12 100644 --- a/charts/coredns/templates/bin/_probe.sh.tpl +++ b/charts/coredns/templates/bin/_probe.sh.tpl @@ -5,7 +5,7 @@ set -x SUCCESS=1 {{/* Use built-in health check */}} -if ! wget http://localhost:8080/health; then +if ! wget -O - http://127.0.0.1:8080/health; then echo "Failed CoreDNS health check endpoint" SUCCESS=0 fi