1、Harbor镜像仓库地址:192.168.0.190
2、Contained地址:192.168.0.179(k8s集群master节点)
3、创建目录/etc/containerd/certs.d/镜像仓库Harbor ip
mkdir -p /etc/containerd/certs.d/192.168.0.190
4、进人上面目录,创建hosts.toml文件
server = "http://192.168.0.190"
[host."http://192.168.0.190"]
capabilities = ["pull", "resolve","push"]
skip_verify = true
5、修改/etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d" #修改该行的配置信息
6、重启服务
systemctl restart containerd