Skip to content

Commit

Permalink
k8s-1.30: enable kubelet drop-in config files
Browse files Browse the repository at this point in the history
We can now use a proper API for customizations. See follow-up commits.

Signed-off-by: Victor Toso <[email protected]>
  • Loading branch information
victortoso committed Oct 11, 2024
1 parent ec02f99 commit 5c65ec7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cluster-provision/k8s/1.30/k8s_provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,14 @@ patch $cni_manifest_ipv6 $cni_ipv6_diff

cp /tmp/local-volume.yaml /provision/local-volume.yaml

# Create drop-in config files for kubelet
# https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/#kubelet-conf-d
kubelet_conf_d="/etc/kubernetes/kubelet.conf.d"
mkdir -m 644 $kubelet_conf_d

# TODO use config file! this is deprecated
cat <<EOT >/etc/sysconfig/kubelet
KUBELET_EXTRA_ARGS=--cgroup-driver=systemd --runtime-cgroups=/systemd/system.slice --fail-swap-on=false --kubelet-cgroups=/systemd/system.slice
KUBELET_EXTRA_ARGS=--cgroup-driver=systemd --runtime-cgroups=/systemd/system.slice --fail-swap-on=false --kubelet-cgroups=/systemd/system.slice --config-dir=$kubelet_conf_d
EOT

# Enable userfaultfd for centos9 to support post-copy live migration.
Expand Down

0 comments on commit 5c65ec7

Please sign in to comment.