From 44f7057e50b7bea314b73906324e485cdba344bb Mon Sep 17 00:00:00 2001 From: Lucas Cavalcante Date: Mon, 7 Mar 2022 12:13:58 -0300 Subject: [PATCH] Fix kubelet service Environment File Kubelet env file in Debain uses path /etc/default instead of /etc/sysconfig Test Plan: PASS: Bootstrap Debian SKIP: Boostrap Centos (only impacts debian build) Story: 2009101 Task: 44600 Depends-on: https://review.opendev.org/c/starlingx/ansible-playbooks/+/828547 Change-Id: Ib2889ba9ca2fd4cee047e70271df0e31ac27267d Signed-off-by: Lucas Cavalcante --- kubernetes/kubernetes-1.21.8/debian/deb_folder/kubeadm.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/kubernetes-1.21.8/debian/deb_folder/kubeadm.conf b/kubernetes/kubernetes-1.21.8/debian/deb_folder/kubeadm.conf index da0611444..bf77a80ca 100644 --- a/kubernetes/kubernetes-1.21.8/debian/deb_folder/kubeadm.conf +++ b/kubernetes/kubernetes-1.21.8/debian/deb_folder/kubeadm.conf @@ -6,7 +6,7 @@ Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env # This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use # the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file. -EnvironmentFile=-/etc/sysconfig/kubelet +EnvironmentFile=-/etc/default/kubelet ExecStart= ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS ExecStartPre=-/usr/local/sbin/sanitize_kubelet_reserved_cpus.sh /etc/sysconfig/kubelet