-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Don't share /etc/hosts when using etcd-manager #8322
Don't share /etc/hosts when using etcd-manager #8322
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks, makes sense, good idea. We probably need to update tests for this too though. LGTM but will need another after tests are fixed 😄 /lgtm |
With etcd-manager the DNS names should only be used by the etcd-manager pod itself, so we don't need to share /etc/hosts with the host. By not sharing we avoid: (1) the temptation to address etcd directly (2) problems of concurrent updates to /etc/hosts being hard from within a container (because locking is difficult across bind mounts) Introducing with kubernetes 1.17 to avoid changing behavior of existing versions.
544d07f
to
4fe3db7
Compare
/lgtm |
/test pull-kops-e2e-kubernetes-aws |
1 similar comment
/test pull-kops-e2e-kubernetes-aws |
With etcd-manager the DNS names should only be used by the
etcd-manager pod itself, so we don't need to share /etc/hosts with the
host.
By not sharing we avoid:
(1) the temptation to address etcd directly
(2) problems of concurrent updates to /etc/hosts being hard from within a container (because locking is difficult across bind mounts)
Introducing with kubernetes 1.17 to avoid changing behavior of existing versions.