当前位置: 首页> 文旅> 美景 > rancher2里面的containerd的使用

rancher2里面的containerd的使用

时间:2025/8/27 0:16:48来源:https://blog.csdn.net/qq_15156403/article/details/140571652 浏览次数:0次

rancher2使用containerd了,在node上去跑docker命令找不到以前的那些pod了,查了很久才设置好crictl的配置

kubectl get nodes -o wide
NAME      STATUS   ROLES                              AGE   VERSION           INTERNAL-IP     EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME
master1   Ready    control-plane,etcd,master,worker   28d   v1.26.15+rke2r1   192.168.18.28   <none>        Ubuntu 20.04.6 LTS   5.4.0-186-generic   containerd://1.7.11-k3s2
node1     Ready    control-plane,etcd,master,worker   28d   v1.26.15+rke2r1   192.168.18.27   <none>        Ubuntu 20.04.6 LTS   5.4.0-186-generic   containerd://1.7.11-k3s2
node2     Ready    control-plane,etcd,master,worker   28d   v1.26.15+rke2r1   192.168.18.29   <none>        Ubuntu 20.04.6 LTS   5.4.0-186-generic   containerd://1.7.11-k3s2

然后

设置/etc/crictl.yaml
runtime-endpoint: /var/run/k3s/containerd/containerd.sock
image-endpoint: /var/run/k3s/containerd/containerd.sock
timeout: 10
#debug: true

然后安装crictl:VERSION="v1.30.0" # check latest version in /releases page
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz
sudo tar zxvf crictl-$VERSION-linux-amd64.tar.gz -C /usr/local/bin
rm -f crictl-$VERSION-linux-amd64.tar.gz

关键字:rancher2里面的containerd的使用

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: