-
Notifications
You must be signed in to change notification settings - Fork 242
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 proxy env to /etc/environment #687
Conversation
`#kubeone` markers are used to allow reset and idempotency
So what’s the rationale behind this? |
It makes sure that all shell-sessions on the system will have the specified proxy environment. Kubeadm especially needs to pass that through to supply kube-controller-manager and others with the environment variables. I would argue that it is the right thing to do to supply proxy environment to the whole machine. |
I mean, /etc/environment is just a convention and is voluntary to source, so what’s the big difference compared to existing kubeone specific file? Remember that control plane machines are not foe general unix usage, they have single responsibility to host CP components. P.S. |
|
machine-controller is writing /etc/environment by cloud-init directives. |
Maybe then let’s replace kubeone specific env with /etc/environment? |
I thought about that too. I think it is good to have /etc/kubeone/proxy-env as a "transport". Also /etc/environment needs you to re-open your shell session to get the environment. For now I would say keeping both is the better choice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
/hold
@kron4eg Do you have some more comments?
LGTM label has been added. Git tree hash: d0d1f98ad4bdebd8199480f83951839e244862ab
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thz, xmudrii 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 |
/hold cancel No, it good. |
Add proxy env to /etc/environment
#kubeone
markers are used to allow reset and idempotencyWhat this PR does / why we need it: