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

Add DNS check to bootstrap #166

Merged
merged 2 commits into from
Apr 10, 2018
Merged

Add DNS check to bootstrap #166

merged 2 commits into from
Apr 10, 2018

Conversation

lilic
Copy link
Contributor

@lilic lilic commented Apr 10, 2018

Sometimes DNS is not configured correctly, but during the launcher
process, DNS is required to setup all the needed resources. This creates
a check by creating a pod where nslookup is performed.

Closes #158.

Tests were not running on the old PR, so this is more or less a duplicate of #164.

@lilic lilic mentioned this pull request Apr 10, 2018
@lilic lilic requested review from dlespiau and leth April 10, 2018 13:08
Copy link
Contributor

@dlespiau dlespiau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the addition of the stdout message "Checking the Kubernetes installation" (or similar) as you suggested in #164, this looks good to me!

// We exit if the DNS pods are not up and running, as the installer needs to be
// able to connect to the server to correctly setup the needed resources.
if !ok {
exitWithCapture("DNS is not working in this Kubernetes cluster. We require correct DNS setup in the Kubernetes cluster.")

This comment was marked as abuse.

return err
}

err = json.Unmarshal([]byte(oJSON), &o)

This comment was marked as abuse.

Sometimes DNS is not configured correctly, but during the launcher
process DNS is required to setup all the needed resources. This creates
a check by creating a pod where nslookup is performed.
@lilic lilic merged commit a60d03e into master Apr 10, 2018
@lilic lilic deleted the lili/dns-check branch April 10, 2018 15:57
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.

3 participants