From 0dd75158851600aa8dbb474fd92d4ddb71441415 Mon Sep 17 00:00:00 2001 From: outductor Date: Mon, 25 Dec 2023 23:13:42 +0900 Subject: [PATCH] fix containerd param --- .../cluster-boot-up/scripts/nodes/k8s-node-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh index 1c78dc4cf..5e43ceeda 100644 --- a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh +++ b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh @@ -86,10 +86,10 @@ sudo apt-get update && sudo apt-get install -y containerd apt-transport-https cu sudo mkdir -p /etc/containerd sudo containerd config default | sudo tee /etc/containerd/config.toml > /dev/null sudo sed -i 's#sandbox_image = "registry.k8s.io/pause:3.8"#sandbox_image = "registry.k8s.io/pause:3.9"#g' /etc/containerd/config.toml -if grep -q "systemd_cgroup = true" "/etc/containerd/config.toml"; then +if grep -q "SystemdCgroup = true" "/etc/containerd/config.toml"; then echo "Config found, skip rewriting..." else -sed -i -e "s/systemd_cgroup \= false/systemd_cgroup \= true/g" /etc/containerd/config.toml +sed -i 's/SystemdCgroup = false/SystemdCgroup = true/g' /etc/containerd/config.toml fi sudo systemctl restart containerd