-
Notifications
You must be signed in to change notification settings - Fork 503
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
deb packages for kubelet on pkgs.k8s.io seem to include a systemd service definition for redhat machines #3276
Comments
This also caused the issue described in #3219 (comment) /priority critical-urgent |
I think this can be easily fixed in the spec file with some |
Maybe it needs a test ? |
@afbjorklund We have an issue to track creating tests for the new implementation: #3168 |
We just stumbled upon this issue after migrating to the new repo here are the steps we followed on ubuntu 22.04 :
and when I check the kubelet environment file, it is the wrong one : ("sysconfig" instead of "default")
We also tried with the latest patched version for 1.26 ( I am not familiar with the k8s release process so I am not sure how can we benefit from the fix in #3279 to install the |
That's correct, no backport is needed. I'm also not able to reproduce the issue for kubeadm releases created after the fix was merged. This what I'm getting and I believe this is correct:
|
Yes, however the package itself places the defaults file in the RedHat location: $ dpkg -L kubelet |grep /kubelet
/etc/sysconfig/kubelet So this was halfway fixed, now the package contents need to be fixed. |
What happened:
After updating to 1.28.2 and switching from apt.kubernetes.io to the pkgs.k8s.io repository, KUBELET_EXTRA_ARGS specified in /etc/default/kubelet (as documented: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/kubelet-integration/#the-kubelet-drop-in-file-for-systemd) no longer were being applied at runtime.
Instead, the systemd service dropin file referred to /etc/sysconfig/kubelet, which is the path used on redhat/rpm machines.
The file that should be included in the deb package is presumably:
release/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf
Line 9 in ec317cd
however it appears to actually be:
release/cmd/kubepkg/templates/latest/rpm/kubeadm/10-kubeadm.conf
Line 9 in ec317cd
What you expected to happen:
the same EnvironmentFile as documented and previously used in packages from apt.kubernetes.io should still be used.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
https://kubernetes.slack.com/archives/C09NXKJKA/p1694790202990129
Environment:
cat /etc/os-release
): Ubuntu 22.04uname -a
): -The text was updated successfully, but these errors were encountered: