minikube
minikube copied to clipboard
registry.cn-hangzhou.aliyuncs.com/google_containers上没有kindnet映像
配置两个节点时(minikube start -n 2),dashboard启不来。
kube-system pod/kindnet-dfrg9 0/1 ImagePullBackOff 0 3m14s kube-system pod/kindnet-x5zwl 0/1 ErrImagePull 0 2m6s
Failed to pull image "registry.cn-hangzhou.aliyuncs.com/google_containers/kindnetd:0.5.4"
同样的问题
使用calico还是报错
minikube version: v1.18.1
commit: 511aca80987826051cf1c6527c3da706925f7909
Normal Pulling 76s kubelet Pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controllers:v3.14.1"
Warning Failed 16s kubelet Failed to pull image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controllers:v3.14.1": rpc error: code = Unknown desc = Error response from daemon: pull access denied for registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controllers, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Warning Failed 16s kubelet Error: ErrImagePull
Normal BackOff 16s kubelet Back-off pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controllers:v3.14.1"
Warning Failed 16s kubelet Error: ImagePullBackOff
换 flannel ok了
OK 我调整一下同步脚本
同样的情况,缺少kubernetesui/metrics-scraper、k8s-minikube/storage-provisioner、kubernetesui/dashboard
同样的情况,缺少kubernetesui/metrics-scraper、k8s-minikube/storage-provisioner、kubernetesui/dashboard
同样 咋解决的?
同样的情况,缺少kubernetesui/metrics-scraper、k8s-minikube/storage-provisioner、kubernetesui/dashboard
是的。我也碰到了。 以下是详细的环境和日志:
My-pc@zhai-localserv:~$ lsb_release -a
LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
My-pc@zhai-localserv:~$ minikube version
minikube version: v1.20.0
commit: c61663e942ec43b20e8e70839dcca52e44cd85ae
minikube start --image-mirror-country cn
--registry-mirror=https://3jjrxxxx.mirror.aliyuncs.com
--cpus=4 --memory=16gb --driver=kvm2 --container-runtime=containerd --profile=minikube
registry-mirror已涂改。
My-pc@zhai-localserv:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:20:00Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
My-pc@zhai-localserv:~$ kubectl get pod -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-54d67798b7-prhqn 1/1 Running 2 8d
etcd-minikube 1/1 Running 2 8d
kube-apiserver-minikube 1/1 Running 2 8d
kube-controller-manager-minikube 1/1 Running 2 8d
kube-proxy-j4hc6 1/1 Running 2 8d
kube-scheduler-minikube 1/1 Running 2 8d
metrics-server-57c599b7c-xss2q 0/1 ImagePullBackOff 0 3d5h
storage-provisioner 0/1 ImagePullBackOff 0 3d5h
My-pc@zhai-localserv:~$ kubectl get pod -n kubernetes-dashboard
NAME READY STATUS RESTARTS AGE
dashboard-metrics-scraper-8554f74445-fgzfw 0/1 ImagePullBackOff 0 8d
kubernetes-dashboard-6c87f58d7c-5rxpk 0/1 ImagePullBackOff 0 8d
Events: Type Reason Age From Message
Warning Failed 3d (x1392 over 3d5h) kubelet Error: ImagePullBackOff Normal BackOff 2d23h (x1458 over 3d5h) kubelet Back-off pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server/metrics-server:v0.4.2@sha256:dbc33d7d35d2a9cc5ab402005aa7a0d13be6192f3550c7d42cba8d2d5e3a5d62" Normal Pulling 5m49s (x4 over 7m26s) kubelet Pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server/metrics-server:v0.4.2@sha256:dbc33d7d35d2a9cc5ab402005aa7a0d13be6192f3550c7d42cba8d2d5e3a5d62" Warning Failed 5m49s (x4 over 7m24s) kubelet Failed to pull image "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server/metrics-server:v0.4.2@sha256:dbc33d7d35d2a9cc5ab402005aa7a0d13be6192f3550c7d42cba8d2d5e3a5d62": rpc error: code = Unknown desc = failed to pull and unpack image "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server/metrics-server@sha256:dbc33d7d35d2a9cc5ab402005aa7a0d13be6192f3550c7d42cba8d2d5e3a5d62": failed to resolve reference "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server/metrics-server@sha256:dbc33d7d35d2a9cc5ab402005aa7a0d13be6192f3550c7d42cba8d2d5e3a5d62": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Events: Type Reason Age From Message
Normal BackOff 3d (x1388 over 3d5h) kubelet Back-off pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5" Warning Failed 2d23h (x1404 over 3d5h) kubelet Error: ImagePullBackOff Normal Pulling 11m (x4 over 13m) kubelet Pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5" Warning Failed 11m (x4 over 13m) kubelet Failed to pull image "registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5": rpc error: code = Unknown desc = failed to pull and unpack image "registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5": failed to resolve reference "registry.cn-hangzhou.aliyuncs.com/google_containers/k8s-minikube/storage-provisioner:v5": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Events: Type Reason Age From Message
Warning Failed 3d (x1482 over 3d6h) kubelet Error: ImagePullBackOff Normal BackOff 2d23h (x1526 over 3d6h) kubelet Back-off pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard:v2.1.0@sha256:7f80b5ba141bead69c4fee8661464857af300d7d7ed0274cf7beecedc00322e6" Normal Pulling 13m (x4 over 14m) kubelet Pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard:v2.1.0@sha256:7f80b5ba141bead69c4fee8661464857af300d7d7ed0274cf7beecedc00322e6" Warning Failed 13m (x4 over 14m) kubelet Failed to pull image "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard:v2.1.0@sha256:7f80b5ba141bead69c4fee8661464857af300d7d7ed0274cf7beecedc00322e6": rpc error: code = Unknown desc = failed to pull and unpack image "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard@sha256:7f80b5ba141bead69c4fee8661464857af300d7d7ed0274cf7beecedc00322e6": failed to resolve reference "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetesui/dashboard@sha256:7f80b5ba141bead69c4fee8661464857af300d7d7ed0274cf7beecedc00322e6": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed