Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Update probe to use container ip. Fixes #584
Browse files Browse the repository at this point in the history
  • Loading branch information
pearj committed May 23, 2018
1 parent 4d25969 commit 53e8aab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ public static DoneablePod createDoneablePodDefaultImpl(PodConfiguration config)
// so then we can initiate a registration.
.withNewReadinessProbe()
.withNewExec()
.addToCommand(new String[] {"/bin/sh", "-c", "curl -s http://localhost:" + config.getNodePort() + "/wd/hub/status | jq .value.ready | grep true"})
.addToCommand(new String[] {"/bin/sh", "-c", "curl -s http://`getent hosts ${HOSTNAME} | awk '{ print $1 }'`:"
+ config.getNodePort() + "/wd/hub/status | jq .value.ready | grep true"})
.endExec()
.withInitialDelaySeconds(5)
.withFailureThreshold(60)
Expand Down

0 comments on commit 53e8aab

Please sign in to comment.