Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the seq(1) command to loop over nslookup in the init container. #201

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

roehrich-hpe
Copy link
Contributor

Switch to using seq(1), which works with sh(1).

Switch to using seq(1), which works with sh(1).

Signed-off-by: Dean Roehrich <dean.roehrich@hpe.com>
@roehrich-hpe
Copy link
Contributor Author

Here's the loop in action:

: dean-mbp; kubectl logs violet-launcher-vqp9p -f -c mpi-wait-for-worker-0
contacting violet-worker-0.violet-worker.default.svc...
attempt 1 of 100...
Server:		10.96.0.10
Address:	10.96.0.10#53

** server can't find violet-worker-0.violet-worker.default.svc: NXDOMAIN

attempt 2 of 100...
Server:		10.96.0.10
Address:	10.96.0.10#53

** server can't find violet-worker-0.violet-worker.default.svc: NXDOMAIN

attempt 3 of 100...
Server:		10.96.0.10
Address:	10.96.0.10#53

** server can't find violet-worker-0.violet-worker.default.svc: NXDOMAIN

attempt 4 of 100...
Server:		10.96.0.10
Address:	10.96.0.10#53

Name:	violet-worker-0.violet-worker.default.svc.cluster.local
Address: 10.244.3.5

successfully contacted violet-worker-0.violet-worker.default.svc; done

@roehrich-hpe roehrich-hpe merged commit fd86cd4 into master Jun 6, 2023
1 check passed
@roehrich-hpe roehrich-hpe deleted the use-seq-over-nslookup branch June 6, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants