diff --git a/setup-kubetools.sh b/setup-kubetools.sh index 0d9fc18..e6a9b19 100755 --- a/setup-kubetools.sh +++ b/setup-kubetools.sh @@ -5,15 +5,15 @@ # this script supports Ubuntu 20.04 LTS and later only # run this script with sudo -if ! [ $USER = root ] -then - echo run this script with sudo - exit 3 -fi +#if ! [ $USER = root ] +#then +# echo run this script with sudo +# exit 3 +#fi if ! [ -f /tmp/container.txt ] then - echo run ./setup-containers.sh before running this script + echo run ./setup-container.sh before running this script exit 4 fi @@ -33,12 +33,6 @@ then br_netfilter EOF -### update 5-3-2024 -# sudo apt-get update && sudo apt-get install -y apt-transport-https curl -# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - -# cat < /etc/sysctl.d/k8s.conf +sudo cat < /etc/sysctl.d/k8s.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 EOF -sysctl --system +sudo sysctl --system sudo crictl config --set \ runtime-endpoint=unix:///run/containerd/containerd.sock