From 7ebf4ee3aa8e9f1478b051dc9dd18fbeac1bfd77 Mon Sep 17 00:00:00 2001 From: Eugenio Marzo Date: Sun, 3 Jan 2021 10:08:39 +0100 Subject: [PATCH] fix nginx --- kube-linter/kube-linter-parser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube-linter/kube-linter-parser.sh b/kube-linter/kube-linter-parser.sh index 9cd1360..a857da9 100755 --- a/kube-linter/kube-linter-parser.sh +++ b/kube-linter/kube-linter-parser.sh @@ -2,7 +2,7 @@ POD_FILE=/tmp/${3}.yaml -curl -XGET "${1}/api/v1/namespaces/${2}/pods/${3}" --header "Authorization: Bearer ${4}" --silent -k > ${POD_FILE} +curl -XGET "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}/api/v1/namespaces/${2}/pods/${3}" --header "Authorization: Bearer ${4}" --silent -k > ${POD_FILE} [ ! $? -eq 0 ] && (echo "{}" && exit 0) chmod 775 ${POD_FILE}