美文网首页
kubeadm 部署k8s 镜像翻墙解决办法

kubeadm 部署k8s 镜像翻墙解决办法

作者: wwq2020 | 来源:发表于2020-10-14 10:47 被阅读0次

    这里是部署k8s 1.19.2

    tag

    #!/bin/bash
    images=(
    kube-apiserver:v1.19.2
    kube-controller-manager:v1.19.2
    kube-scheduler:v1.19.2
    kube-proxy:v1.19.2
    etcd:3.4.13-0
    coredns:1.7.0
    pause:3.2
    )
    for imageName in ${images[@]} ; do
        docker pull registry.aliyuncs.com/google_containers/$imageName
        docker tag registry.aliyuncs.com/google_containers/$imageName k8s.gcr.io/$imageName
        docker rmi registry.aliyuncs.com/google_containers/$imageName
    done
    

    kubeadm init时候指定image-repository

    --image-repository registry.aliyuncs.com/google_container```

    相关文章

      网友评论

          本文标题:kubeadm 部署k8s 镜像翻墙解决办法

          本文链接:https://www.haomeiwen.com/subject/tzpipktx.html