#这里只是举例 ,阿里云 腾讯云 华为云类似操作
1.在 harbor服务器操作
登录本机的harbor仓库
docker login 192.168.43.8000
2.在k8s集群节点配置镜像仓库的默认
2.1 修改docker配置文件,将私有仓库认证为安全仓库:"insecure-registries":["172.17.0.1:5000"],
cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://b9pmyelo.mirror.aliyuncs.com"],
"insecure-registries":["192.168.43.90:8888"],
"exec-opts": ["native.cgroupdriver=systemd"]
}
~