Skip to content

Commit

Permalink
Optimized the systemd extension configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
muicoder committed May 8, 2024
1 parent 7984699 commit 9434434
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions k8s/scripts/init-kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ logger "pull pause image ${registryDomain}:${registryPort}/${sandboxImage}"
crictl pull ${registryDomain}:${registryPort}/${sandboxImage}
mkdir -p /etc/systemd/system
cp ../etc/kubelet.service /etc/systemd/system/
[ -d /etc/systemd/system/kubelet.service.d ] || mkdir /etc/systemd/system/kubelet.service.d
cp ../etc/10-kubeadm.conf /etc/systemd/system/kubelet.service.d/
cp -a ../etc/systemd/system /etc/systemd && systemctl daemon-reload
[ -d /var/lib/kubelet ] || mkdir /var/lib/kubelet
systemctl enable kubelet
logger "init kubelet success"

0 comments on commit 9434434

Please sign in to comment.