diff --git a/hack/kubernetes/allinone.sh b/hack/kubernetes/allinone.sh index 52a962068..f1e2450c3 100644 --- a/hack/kubernetes/allinone.sh +++ b/hack/kubernetes/allinone.sh @@ -54,7 +54,6 @@ install_pouch_ubuntu() { add-apt-repository "deb http://mirrors.aliyun.com/opsx/pouch/linux/debian/ pouch stable" apt-get -y update apt-get install -y pouch - systemctl enable pouch systemctl start pouch } @@ -68,9 +67,14 @@ install_pouch_centos() { } config_pouch_ubuntu() { - sed -i "s/ExecStart=\/usr\/bin\/pouchd/ExecStart=\/usr\/bin\/pouchd --enable-cri=true --cri-version=$CRI_VERSION/g" /usr/lib/systemd/system/pouch.service + mkdir -p /etc/systemd/system/pouch.service.d + cat > /etc/systemd/system/pouch.service.d/pouch.conf < /etc/systemd/system/pouch.service.d/pouch.conf <