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 nslookup in the init container #92

Merged
merged 2 commits into from
Apr 15, 2023
Merged

Conversation

kuizhiqing
Copy link
Collaborator

Background

To obtain the IP addresses of all pods in the same job, the paddle-operator uses an init container to perform a barrier operation. This makes it possible to collect the IP addresses of all pods and store them in a configmap that every pod can access.

Motivation

The recent implementation relied on the restclient to execute remote commands, which can sometimes have issues. Therefore, we replaced this mechanism with the nslookup tool to perform the barrier operation. This is expected to be more reliable.

Acknowledge

Thank you to @lfeng-nl for testing the work and fixing the issue with the following modifications:

  • The svc may not work without setting publishNotReadyAddresses=True.
  • alpine:3 does not work while alpine:3.10 works fine.

@kuizhiqing kuizhiqing merged commit 7ce6226 into PaddleFlow:main Apr 15, 2023
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.

1 participant