Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registry.cn-hangzhou 与 k8s.gcr.io 同步事宜 #11

Open
oldunclez opened this issue Aug 20, 2021 · 0 comments
Open

registry.cn-hangzhou 与 k8s.gcr.io 同步事宜 #11

oldunclez opened this issue Aug 20, 2021 · 0 comments

Comments

@oldunclez
Copy link

oldunclez commented Aug 20, 2021

安装最新版的k8s需要以下

root@test-k-1:~# kubeadm config images list                                                                       
k8s.gcr.io/kube-apiserver:v1.22.1
k8s.gcr.io/kube-controller-manager:v1.22.1
k8s.gcr.io/kube-scheduler:v1.22.1
k8s.gcr.io/kube-proxy:v1.22.1
k8s.gcr.io/pause:3.5
k8s.gcr.io/etcd:3.5.0-0
k8s.gcr.io/coredns/coredns:v1.8.4

多数image都有在registry.cn-hangzhou 中,但是coredns的路径不对

root@test-k-1:~# kubeadm config images pull --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
[config/images] Pulled registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.22.1
[config/images] Pulled registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.22.1
[config/images] Pulled registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.22.1
[config/images] Pulled registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.22.1
[config/images] Pulled registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.5
[config/images] Pulled registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.5.0-0
failed to pull image "registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.4": output: Error response from daemon: manifest for registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.4 not found: manifest unknown: manifest unknown
, error: exit status 1
To see the stack trace of this error execute with --v=5 or higher

能下载的地址是

root@test-k-1:~# docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.8.4 
1.8.4: Pulling from google_containers/coredns
Digest: sha256:6e5a02c21641597998b4be7cb5eb1e7b02c0d8d23cce4dd09f4682d463798890
Status: Image is up to date for registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.8.4
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.8.4

为什么coredns的tag,在gcr是v1.8.4 ,而同步到registry.cn-hangzhou后是1.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant