Skip to content

deb packages for kubelet on pkgs.k8s.io seem to include a systemd service definition for redhat machines #3276

Closed
@timricese

Description

@timricese

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:

EnvironmentFile=-/etc/default/kubelet

however it appears to actually be:

EnvironmentFile=-/etc/sysconfig/kubelet

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):

apt install kubelet=1.28.2-1.1
systemctl cat kubelet.service

Anything else we need to know?:

https://kubernetes.slack.com/archives/C09NXKJKA/p1694790202990129

Environment:

  • Cloud provider or hardware configuration: bare metal
  • OS (e.g: cat /etc/os-release): Ubuntu 22.04
  • Kernel (e.g. uname -a): -
  • Others: kubelet==1.28.2-1.1

Metadata

Metadata

Assignees

Labels

area/release-engIssues or PRs related to the Release Engineering subprojectkind/bugCategorizes issue or PR as related to a bug.priority/critical-urgentHighest priority. Must be actively worked on as someone's top priority right now.sig/releaseCategorizes an issue or PR as relevant to SIG Release.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions