美文网首页
k8s相关镜像无法正常拉取解决

k8s相关镜像无法正常拉取解决

作者: 戈羽殇雪 | 来源:发表于2021-03-31 17:56 被阅读0次

    之前安装k8s的时候使用的源是用的阿里的源,registry.cn-hangzhou.aliyuncs.com/google_containers,这个很多k8s
    系统安装相关的镜像都包含在内,只安装k8s 系统的话足够用了。
    如果其他非热门的google的相关镜像,这个镜像库就不够用了
    找了很久找到了国内作者做的 镜像安装工具:https://github.com/zhangguanzhang/gcr.io
    使用方法可以参照git的reademe
    查询namesapce:

    curl -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s search gcr.io
    cloud-builders
    cloud-datalab
    cloudsql-docker
    distroless
    google-appengine
    google-samples
    google_containers
    google_samples
    heptio-images
    istio-release
    k8s-minikube
    kaniko-project
    knative-releases
    knative-samples
    kubeflow-images-public
    kubernetes-e2e-test-images
    kubernetes-helm
    linkerd-io
    runconduit
    spinnaker-marketplace
    tf-on-k8s-dogfood
    

    查询某一空间下镜像

    url -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s search gcr.io/google_containers
    addon-builder
    addon-resizer-amd64
    addon-resizer-arm
    addon-resizer-arm64
    addon-resizer-ppc64le
    addon-resizer-s390x
    addon-resizer
    aggregator
    alpine-iptables-amd64
    alpine-iptables-arm
    alpine-iptables-arm64
    alpine-with-bash
    apparmor-loader
    busybox
    cadvisor
    cassandra-e2e-test
    cassandra
    check-metadata-concealment
    cloud-controller-manager-amd64
    cloud-controller-manager-arm
    cloud-controller-manager-arm64
    cloud-controller-manager-ppc64le
    cloud-controller-manager-s390x
    cloud-controller-manager
    cloudsql-authenticator
    cluster-autoscaler
    cluster-proportional-autoscaler-amd64
    cluster-proportional-autoscaler-arm
    cluster-proportional-autoscaler-arm64
    cluster-proportional-autoscaler-ppc64le
    clusterapi-tester
    clusterregistry
    conformance-amd64
    conformance-arm
    conformance-arm64
    conformance-ppc64le
    conformance-s390x
    conformance
    coredns
    

    查询镜像tag

    curl -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s search k8s.gcr.io/etcd
    2.0.12
    2.0.13
    2.0.8
    2.0.9
    2.0.9.1
    2.1.0-alpha.0
    2.2.1
    2.2.5
    2.3.7
    3.0.10-experimental.1
    3.0.12-experimental.1
    3.0.12-experimental.10
    3.0.12-experimental.11
    3.0.12-experimental.12
    3.0.12-experimental.13
    3.0.12-experimental.2
    3.0.12-experimental.4
    3.0.12-experimental.5
    3.0.12-experimental.6
    3.0.12-experimental.7
    3.0.12-experimental.8
    3.0.12-experimental.9
    3.0.13-experimental.1
    3.0.13-experimental.2
    3.0.13-experimental.3
    3.0.13-experimental.4
    3.0.13-experimental.5
    3.0.14
    3.0.14-alpha.1
    3.0.14-experimental.1
    3.0.14-experimental.2
    ......
    

    下载镜像

     curl -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s --  gcr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.0
    

    若提示需要安装jq,则需要先安装epel源,

    yum install -y jq
    

    相关文章

      网友评论

          本文标题:k8s相关镜像无法正常拉取解决

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