This commit is contained in:
Eliezer Croitoru 2024-01-28 10:38:17 +00:00
parent f61163ff35
commit 8e77f6eda9

View File

@ -1,8 +1,8 @@
#!/usr/bin/env
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
apt install -y containerd
apt install -y containerd wget
mkdir -p /etc/containerd
@ -14,7 +14,7 @@ echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/010-k8s.conf
echo "br_netfilter" > /etc/modules-load.d/k8s.conf
sysctl --system
modpobe br_netfilter
modprobe br_netfilter
systemctl restart containerd
@ -23,4 +23,10 @@ runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
EOF
VERSION="v1.28.0"
wget "https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz"
tar zxvf "crictl-$VERSION-linux-amd64.tar.gz" -C /usr/local/bin
rm -f "crictl-$VERSION-linux-amd64.tar.gz"
crictl ps