diff --git a/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java b/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java index 2fb12181cd..a88a0bcff2 100644 --- a/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java +++ b/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java @@ -612,7 +612,7 @@ public static DoneablePod createDoneablePodDefaultImpl(PodConfiguration config) // so then we can initiate a registration. .withNewReadinessProbe() .withNewExec() - .addToCommand(new String[] {"/bin/sh", "-c", "http_proxy=\"\" curl -s http://`getent hosts ${HOSTNAME} | awk '{ print $1 }'`:" + .addToCommand(new String[] {"/bin/sh", "-c", "http_proxy=\"\" curl -s http://`hostname -i`:" + config.getNodePort() + "/wd/hub/status | jq .value.ready | grep true"}) .endExec() .withInitialDelaySeconds(5)