customized containerd for Arktos able to pass K8S_POD_TENANT and cni-args annotations to cni plugin as CNI_ARGS parameter
for arktos to replace the standard containerd
This customized containerd is confirmed working in containerd 1.4.2 suite. It does not work with 1.3.3 suite.
Please check your containerd version; upgrade it to 1.4.2 if your containerd is too old.
wget -qO- https://github.com/futurewei-cloud/containerd/releases/download/tenant-cni-args/containerd.zip | zcat > /tmp/containerd
chmod +x /tmp/containerd
sudo systemctl stop containerd
sudo mv /usr/bin/containerd /usr/bin/containerd.bak
sudo mv /tmp/containerd /usr/bin/
sudo systemctl restart containerd