Skip to content

Commit

Permalink
fix kubelet env
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal committed Apr 12, 2024
1 parent 9dc3f15 commit 495d6fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/common-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,14 @@ providerID: "hcloud://$INSTANCE_ID"
runtimeRequestTimeout: "15m"
EOF

cat <<EOF | tee /etc/sysconfig/kubelet
cat <<EOF | tee /etc/default/kubelet
KUBELET_CONFIG_ARGS=--config=/etc/kubernetes/kubelet/config.yaml
KUBELET_EXTRA_ARGS=--cloud-provider=external --node-ip=$INTERNAL_IP --v=2
EOF

# some UBUNTU installations use /etc/sysconfig/kubelet
cp /etc/default/kubelet /etc/sysconfig/kubelet

apt -y autoremove
apt -y autoclean

Expand Down

0 comments on commit 495d6fb

Please sign in to comment.