-
Notifications
You must be signed in to change notification settings - Fork 716
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
Write kubelet env file on kubeadm upgrade node
#1916
Comments
/priority important-longterm |
/lifecycle active |
@pickledrick hi, i saw your ticket here:
as we are discussing on the PR, cluster reconf and upgrades are two separate actions that should not be mixed: in the case of a pause image change, one can reconf (either manually or using a kubeadm future functionality), then perform the upgrade. |
@ereslibre @neolit123 @boluisa As of today kubeadm is not saving the original TL;DR; both Expanding the concept, kubeadm today is not designed to support the upgrade the kubelet environment file due to the lack of a permanent storage for If you ask me why |
+1 to what @fabriziopandini said. Let's nuke the call. |
I'm +1 as well to nuke the call from
Yes, this is right, it got introduced in kubernetes/kubernetes#65104 to make the upgrade from 1.10 to >1.11 work e2e. |
FYI, my team is NOT specifying
While I agree that
Sure, If P.S. The exact use case for my team changing the |
yes, this is the current use case, but when implementing a change we should consider all the possible conditions, and "a user specifying KubeletExtraArgs in the config" is one of them.
unfortunately, when kubeadm is executed it has access only to the current version of the [1] as already noted above, parsing the file existing on the node where kubeadm is executed is a possible approach, but as proved several occasions in the past, it is far from being reliable However the underlying point of this discussion is that As a kubeadm team we are working on #1698 to address the "change the cluster" story (yay!) |
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
What happened?
Since kubernetes/kubernetes@df477a9,
kubeadm upgrade apply
is writing the kubelet environment file if it does not exist, butkubeadm upgrade node
is not.The code path https://github.com/kubernetes/kubernetes/blob/d1e8702d36947ccc23ad820eaae7f4afbaf0b058/cmd/kubeadm/app/phases/upgrade/postupgrade.go#L164-L176 is triggered only by
kubeadm upgrade apply
.Anything else we need to know?
There are two sides for this:
Why
kubeadm upgrade apply
tries to create a kubelet env file if it does not exist?kubeadm upgrade apply
.If it's really needed, then
kubeadm upgrade node
should behave alike and write this env file if it's missingkubeadm upgrade node
so it will trigger this code path askubeadm upgrade apply
does.Moving forward, I also wonder about the relationship of this environment file regarding kubeadm. If kubeadm is owning this file, would that make sense to also overwrite this file on upgrades? If this is a yes, then the logic should be a little different, overwriting this env file always during upgrades, upon
kubeadm upgrade apply
andkubeadm upgrade node
.The text was updated successfully, but these errors were encountered: