frezes
我手动拉取镜像成功后,删除pod,POD依旧提示拉取镜像失败。
root@master:~# kubectl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-67fbf89557-lnjdc 1/1 Running 0 12m
kube-system calico-node-6twn2 1/1 Running 0 12m
kube-system calico-node-7qw75 1/1 Running 0 12m
kube-system calico-node-b9fbz 1/1 Running 0 12m
kube-system coredns-757cd945b-cspcz 1/1 Running 0 12m
kube-system coredns-757cd945b-t8vtw 1/1 Running 0 12m
kube-system kube-apiserver-master 1/1 Running 0 12m
kube-system kube-controller-manager-master 1/1 Running 0 12m
kube-system kube-proxy-nrs5r 1/1 Running 0 12m
kube-system kube-proxy-pdfx6 1/1 Running 0 12m
kube-system kube-proxy-wvc7w 1/1 Running 0 12m
kube-system kube-scheduler-master 1/1 Running 0 12m
kube-system nodelocaldns-4hkxg 1/1 Running 0 12m
kube-system nodelocaldns-qtl5m 1/1 Running 0 12m
kube-system nodelocaldns-tkflr 1/1 Running 0 12m
kube-system openebs-localpv-provisioner-7bbcf865cd-zn5th 1/1 Running 0 12m
kube-system snapshot-controller-0 0/1 ImagePullBackOff 0 46s
kubesphere-system ks-installer-ddbcf44f8-s49w4 1/1 Running 0 12m
kubesphere-system minio-7879c5dd65-m22kr 0/1 ErrImagePull 0 18s
kubesphere-system openldap-0 0/1 ContainerCreating 0 6s
root@master:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controllers v3.26.1 1919f2787fa7 22 months ago 75.1MB
registry.cn-beijing.aliyuncs.com/kubesphereio/cni v3.26.1 9dee260ef7f5 22 months ago 210MB
registry.cn-beijing.aliyuncs.com/kubesphereio/pod2daemon-flexvol v3.26.1 092a973bb20e 22 months ago 14.8MB
registry.cn-beijing.aliyuncs.com/kubesphereio/node v3.26.1 8065b798a4d6 22 months ago 246MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-apiserver v1.23.10 9ca5fafbe8dc 2 years ago 135MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-proxy v1.23.10 71b9bf9750e1 2 years ago 112MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-scheduler v1.23.10 d5c0efb802d9 2 years ago 53.5MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controller-manager v1.23.10 91a4a0d5de4e 2 years ago 125MB
registry.cn-beijing.aliyuncs.com/kubesphereio/linux-utils 3.3.0 e88cfb3a763b 2 years ago 72.4MB
registry.cn-beijing.aliyuncs.com/kubesphereio/coredns 1.8.6 a4ca41631cc7 3 years ago 46.8MB
registry.cn-beijing.aliyuncs.com/kubesphereio/pause 3.6 6270bb605e12 3 years ago 683kB
registry.cn-beijing.aliyuncs.com/kubesphereio/k8s-dns-node-cache 1.15.12 5340ba194ec9 5 years ago 107MB
root@master:~#
root@master:~# docker pull registry.cn-beijing.aliyuncs.com/kubesphereio/minio:RELEASE.2019-08-07T01-59-21Z
RELEASE.2019-08-07T01-59-21Z: Pulling from kubesphereio/minio
e7c96db7181b: Pull complete
e088a1581a57: Pull complete
9ca5f6ef1275: Pull complete
b645ed203cec: Pull complete
Digest: sha256:cdc1ad6ee7b16b35a8c26c00e7bed0482f21bcd8ce841813fb91600f7d7f2faf
Status: Downloaded newer image for registry.cn-beijing.aliyuncs.com/kubesphereio/minio:RELEASE.2019-08-07T01-59-21Z
registry.cn-beijing.aliyuncs.com/kubesphereio/minio:RELEASE.2019-08-07T01-59-21Z
root@master:~# kubectl describe pod -n kubesphere-system minio-7879c5dd65-m22kr | grep Image:
Image: minio/minio:RELEASE.2019-08-07T01-59-21Z
root@master:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controllers v3.26.1 1919f2787fa7 22 months ago 75.1MB
registry.cn-beijing.aliyuncs.com/kubesphereio/cni v3.26.1 9dee260ef7f5 22 months ago 210MB
registry.cn-beijing.aliyuncs.com/kubesphereio/pod2daemon-flexvol v3.26.1 092a973bb20e 22 months ago 14.8MB
registry.cn-beijing.aliyuncs.com/kubesphereio/node v3.26.1 8065b798a4d6 22 months ago 246MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-apiserver v1.23.10 9ca5fafbe8dc 2 years ago 135MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-scheduler v1.23.10 d5c0efb802d9 2 years ago 53.5MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-proxy v1.23.10 71b9bf9750e1 2 years ago 112MB
registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controller-manager v1.23.10 91a4a0d5de4e 2 years ago 125MB
registry.cn-beijing.aliyuncs.com/kubesphereio/linux-utils 3.3.0 e88cfb3a763b 2 years ago 72.4MB
registry.cn-beijing.aliyuncs.com/kubesphereio/coredns 1.8.6 a4ca41631cc7 3 years ago 46.8MB
registry.cn-beijing.aliyuncs.com/kubesphereio/pause 3.6 6270bb605e12 3 years ago 683kB
registry.cn-beijing.aliyuncs.com/kubesphereio/k8s-dns-node-cache 1.15.12 5340ba194ec9 5 years ago 107MB
registry.cn-beijing.aliyuncs.com/kubesphereio/minio RELEASE.2019-08-07T01-59-21Z 29c267893b04 5 years ago 61.3MB
root@master:~#
部署时选择的中国地区的部署方法,实际拉取镜像强制读取国外,本地完全不读取。
root@master:~# kubectl describe pod -n kubesphere-system minio-7879c5dd65-m22kr | grep image
Warning Failed 2m26s (x3 over 3m42s) kubelet Failed to pull image "minio/minio:RELEASE.2019-08-07T01-59-21Z": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Normal Pulling 96s (x4 over 3m57s) kubelet Pulling image "minio/minio:RELEASE.2019-08-07T01-59-21Z"
Warning Failed 81s kubelet Failed to pull image "minio/minio:RELEASE.2019-08-07T01-59-21Z": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 157.240.17.36:443: i/o timeout
Normal BackOff 57s (x7 over 3m41s) kubelet Back-off pulling image "minio/minio:RELEASE.2019-08-07T01-59-21Z"