Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Flux not honouring /etc/hosts file #1627

Closed
rampreethethiraj opened this issue Jan 2, 2019 · 1 comment · Fixed by #1630
Closed

Flux not honouring /etc/hosts file #1627

rampreethethiraj opened this issue Jan 2, 2019 · 1 comment · Fixed by #1630
Assignees

Comments

@rampreethethiraj
Copy link

We have a private repo where we store all the images. When flux is trying to read images from this private repo, what is happening is that it is resolving the dns to a public ip and is trying to connect there despite specifying hostAliases in the yaml and I have crossverified that under /etc/hosts there is an entry for the docker repo. Could someone please help me out as to understand what is happening here .

@squaremo
Copy link
Member

squaremo commented Jan 3, 2019

This is most likely connected to golang/go#22846: Go's native hostname resolution checks DNS before /etc/hosts (in the absence of /etc/nsswitch.conf). We use alpine as the base image, and there is no /etc/nsswitch.conf shipped with alpine.

Remedy: we can include a minimal /etc/nsswitch.conf in the image, as suggested in the issue mentioned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants