Skip to content

Commit c6918e9

Browse files
committed
SystemdCgroup
1 parent 39200b8 commit c6918e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

terraform/modules/k8s-cluster/master.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ wget https://raw.githubusercontent.com/containerd/containerd/main/containerd.ser
2323
mkdir -p /usr/local/lib/systemd/system
2424
mv containerd.service /usr/local/lib/systemd/system/containerd.service
2525
systemctl daemon-reload
26+
27+
mkdir -p /etc/containerd
28+
containerd config default | sudo tee /etc/containerd/config.toml > /dev/null
29+
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
30+
2631
systemctl enable --now containerd
32+
systemctl restart containerd
2733

2834
# Install Runc
2935
echo "-------------Installing Runc-------------"

0 commit comments

Comments
 (0)