因为现在k8s引擎,从docker 换成containerd
vi /etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".registry.configs."dockerhub.kubekey.local".tls]
ca_file = "/etc/docker/certs.d/dockerhub.kubekey.local/ca.crt"
cert_file = "/etc/docker/certs.d/dockerhub.kubekey.local/dockerhub.kubekey.local.cert"
key_file = "/etc/docker/certs.d/dockerhub.kubekey.local/dockerhub.kubekey.local.key"
insecure_skip_verify = false
find / -name config.toml
/etc/containerd/config.toml
/root/kubekey/master/config.toml
/root/kubekey/node01/config.toml
注意所有节点都要同步修改
systemctl restart containerd