From 12fa8d2d8b5cb6d50a33d290f04212b99b40253c Mon Sep 17 00:00:00 2001 From: LAMY Julien Date: Sun, 15 Sep 2019 13:34:23 +0200 Subject: [PATCH] Fix get hostname dns load (#1048) * Release 3.141.59t * Add empty default value for podSecurityContext and containerSecurityContext (#1016) Co-Authored-By: Pirmin Schuermann * Issue-1019 Update helm chart zip files to release version 3.141.59t (#1020) * fixed index file (#1025) * Change probes URL to the /status page (#1024) When creating the console page, Zalenium servlet collects the status of all the nodes. If some of the nodes' proxy is unavailable, then the probe will fail. Using status page makes the Hub probes not relying on the state, health and availability of the node pods. * Fix condition to get container by remote url * Add symlink for /usr/bin/docker in Dockerfile * Rewrite condition to exec ./zalenium.sh in entry.sh considering none sudo * Update docker swarm documentation * allow the modification of the hosts file inside a container * Add documentation for hostAliases * Fix get pod ip dns load error --- .../container/kubernetes/KubernetesContainerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)