配置镜像加速 还是拉取失败
来源:6-6 部署ingress-nginx(下)

啥也不会的py萌新
2021-05-27
[root@node1 ingress-nginx]# kubectl get all -n ingress-nginx
NAME READY STATUS RESTARTS AGE
pod/ingress-nginx-admission-create-4blxn 0/1 Completed 0 46m
pod/ingress-nginx-admission-patch-82x85 0/1 Completed 2 46m
pod/ingress-nginx-controller-6cb6fdd64b-29rks 0/1 ImagePullBackOff 0 46m
pod/ingress-nginx-controller-7g7hk 1/1 Running 2 43h
pod/ingress-nginx-controller-cgwzd 1/1 Running 1 43h
pod/ingress-nginx-controller-x4g4h 1/1 Running 2 43h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/ingress-nginx-controller NodePort 10.200.104.77 <none> 80:30749/TCP,443:31995/TCP 46m
service/ingress-nginx-controller-admission ClusterIP 10.200.121.210 <none> 443/TCP 46m
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/ingress-nginx-controller 3 3 3 3 3 kubernetes.io/os=linux 43h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/ingress-nginx-controller 0/1 1 0 46m
NAME DESIRED CURRENT READY AGE
replicaset.apps/ingress-nginx-controller-6cb6fdd64b 1 1 0 46m
NAME COMPLETIONS DURATION AGE
job.batch/ingress-nginx-admission-create 1/1 15s 46m
job.batch/ingress-nginx-admission-patch 1/1 26s 46m
[root@node1 ingress-nginx]# grep image deploy.yaml
image: k8s.gcr.io/ingress-nginx/controller:v0.46.0@sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
imagePullPolicy: IfNotPresent
image: docker.io/jettech/kube-webhook-certgen:v1.5.1
imagePullPolicy: IfNotPresent
image: docker.io/jettech/kube-webhook-certgen:v1.5.1
imagePullPolicy: IfNotPresent
[root@node1 ingress-nginx]# ctr i pull k8s.gcr.io/ingress-nginx/controller:v0.46.0
k8s.gcr.io/ingress-nginx/controller:v0.46.0: resolving |--------------------------------------|
elapsed: 29.9s total: 0.0 B (0.0 B/s)
INFO[0030] trying next host error="failed to do request: Head \"https://k8s.gcr.io/v2/ingress-nginx/controller/manifests/v0.46.0\": dial tcp 108.177.97.82:443: i/o timeout" host=k8s.gcr.io
ERRO[0030] active check failed error="context canceled"
ctr: failed to resolve reference "k8s.gcr.io/ingress-nginx/controller:v0.46.0": failed to do request: Head "https://k8s.gcr.io/v2/ingress-nginx/controller/manifests/v0.46.0": dial tcp 108.177.97.82:443: i/o timeout
[root@node1 ingress-nginx]# crictl info|grep -A 5 registry
"registry": {
"configPath": "",
"mirrors": {
"docker.io": {
"endpoint": [
"https://6htlwj3t.mirror.aliyuncs.com"
写回答
1回答
-
刘果国
2021-05-28
google的镜像,加速器没用,一般要墙外下载。或者去阿里的仓库搜一个版本一样的镜像,把镜像地址改掉
00
相似问题