diff --git a/charts/json-server/templates/configmap.yaml b/charts/json-server/templates/configmap.yaml index 7f87098..da0182a 100644 --- a/charts/json-server/templates/configmap.yaml +++ b/charts/json-server/templates/configmap.yaml @@ -64,8 +64,8 @@ data: esac done - [ $(curl -kLs -w "%{http_code}" -o /dev/null https://$URL) != 200 ] && { - echo 'Could not connect to' $URL + [[ $(getent hosts $URL) ]] || { + echo 'Could not resolve' $URL exit 1 }