add install cni

This commit is contained in:
Sambo Chea 2021-10-09 15:13:25 +07:00 committed by GitHub
parent 9691e1085a
commit 2f07ae55a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,3 +46,11 @@ EOF
sudo sysctl --system sudo sysctl --system
``` ```
# Install CNI plugins (required for most pod network)
```shell
CNI_VERSION="v0.8.2"
ARCH="amd64"
sudo mkdir -p /opt/cni/bin
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz" | sudo tar -C /opt/cni/bin -xz
```