{"action":"created","issue":{"url":"https://api.github.com/repos/weaveworks/flux/issues/1627","repository_url":"https://api.github.com/repos/weaveworks/flux","labels_url":"https://api.github.com/repos/weaveworks/flux/issues/1627/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/flux/issues/1627/comments","events_url":"https://api.github.com/repos/weaveworks/flux/issues/1627/events","html_url":"https://github.com/weaveworks/flux/issues/1627","id":395299821,"node_id":"MDU6SXNzdWUzOTUyOTk4MjE=","number":1627,"title":"Flux not honouring /etc/hosts file","user":{"login":"rampreethethiraj","id":40483023,"node_id":"MDQ6VXNlcjQwNDgzMDIz","avatar_url":"https://avatars1.githubusercontent.com/u/40483023?v=4","gravatar_id":"","url":"https://api.github.com/users/rampreethethiraj","html_url":"https://github.com/rampreethethiraj","followers_url":"https://api.github.com/users/rampreethethiraj/followers","following_url":"https://api.github.com/users/rampreethethiraj/following{/other_user}","gists_url":"https://api.github.com/users/rampreethethiraj/gists{/gist_id}","starred_url":"https://api.github.com/users/rampreethethiraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rampreethethiraj/subscriptions","organizations_url":"https://api.github.com/users/rampreethethiraj/orgs","repos_url":"https://api.github.com/users/rampreethethiraj/repos","events_url":"https://api.github.com/users/rampreethethiraj/events{/privacy}","received_events_url":"https://api.github.com/users/rampreethethiraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-02T16:18:26Z","updated_at":"2019-01-03T15:17:00Z","closed_at":null,"author_association":"NONE","body":"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 ."},"comment":{"url":"https://api.github.com/repos/weaveworks/flux/issues/comments/451173240","html_url":"https://github.com/weaveworks/flux/issues/1627#issuecomment-451173240","issue_url":"https://api.github.com/repos/weaveworks/flux/issues/1627","id":451173240,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTE3MzI0MA==","user":{"login":"squaremo","id":62033,"node_id":"MDQ6VXNlcjYyMDMz","avatar_url":"https://avatars3.githubusercontent.com/u/62033?v=4","gravatar_id":"","url":"https://api.github.com/users/squaremo","html_url":"https://github.com/squaremo","followers_url":"https://api.github.com/users/squaremo/followers","following_url":"https://api.github.com/users/squaremo/following{/other_user}","gists_url":"https://api.github.com/users/squaremo/gists{/gist_id}","starred_url":"https://api.github.com/users/squaremo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squaremo/subscriptions","organizations_url":"https://api.github.com/users/squaremo/orgs","repos_url":"https://api.github.com/users/squaremo/repos","events_url":"https://api.github.com/users/squaremo/events{/privacy}","received_events_url":"https://api.github.com/users/squaremo/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T15:17:00Z","updated_at":"2019-01-03T15:17:00Z","author_association":"MEMBER","body":"This is most likely connected to https://github.com/golang/go/issues/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.\r\n\r\nRemedy: we can include a minimal `/etc/nsswitch.conf` in the image, as suggested in the issue mentioned."}}
{"actor":{"display_login":"squaremo"}}