使用国内作者制作的gcr.io镜像安装工具
项目地址: https://github.com/zhangguanzhang/gcr.io
查询namespace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| [centos@k8s-master tekton]$ 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
|
查询某一名称空间下镜像列表
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| [centos@k8s-master tekton]$ curl -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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| [centos@k8s-master tekton]$ curl -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s search gcr.io/google_containers/coredns 1.0.1 1.0.1__amd64_linux 1.0.1__arm64_linux 1.0.1__arm_linux 1.0.1__ppc64le_linux 1.0.1__s390x_linux 1.0.6 1.0.6__amd64_linux 1.0.6__arm64_linux 1.0.6__arm_linux 1.0.6__ppc64le_linux 1.0.6__s390x_linux 1.1.3 1.1.3__amd64_linux 1.1.3__arm64_linux 1.1.3__arm_linux 1.1.3__ppc64le_linux 1.1.3__s390x_linux 1.2.2 1.2.3 1.2.4 1.2.6 1.3.0 1.3.1
|
拉取某一镜像
1
| curl -s https://zhangguanzhang.github.io/bash/pull.sh | bash -s -- gcr.io/google_containers/kube-apiserver-amd64:v1.11.3
|
以上搜索的时候,如果仅指定了gcr.io
则搜索下面所有的名称空间,如果指定的名称空间,则搜索指定名称空间下的所有镜像,如果指定了镜像,则搜索镜像的所有版本信息
使用search命令的时候,如果没有安装jq则会提示安装jq.jq在centos下安装方法:
1
| yum install epel-release
|