fix nginx

This commit is contained in:
Eugenio Marzo
2021-01-03 10:08:39 +01:00
parent e4a5463470
commit 7ebf4ee3aa
+1 -1
View File
@@ -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}