Normal Scheduled 38s default-scheduler Successfully assigned default/thanos-rule-65458b86c5-qwtxl to minikube
Warning Failed 32s kubelet Failed to pull image "ubuntu:bionic": rpc error: code = Unknown desc = toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
Normal Pulling 17s (x2 over 37s) kubelet Pulling image "ubuntu:bionic"
Warning Failed 13s (x2 over 32s) kubelet Error: ErrImagePull
Warning Failed 13s kubelet Failed to pull image "ubuntu:bionic": rpc error: code = Unknown desc = Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
Normal BackOff 0s (x2 over 31s) kubelet Back-off pulling image "ubuntu:bionic"
Warning Failed 0s (x2 over 31s) kubelet Error: **ImagePullBackOff**
docker login一点问题都没有,直接使用docker也可以拉取镜像。初步估计是缓存没有刷过去,我又不想重新启动minikube集群 ̄へ ̄
目前的想法是参考Pulling an image from a private registry的指引来配置secret。从私有仓库都能抓取,那我从通过公有仓库的验证下载应该也是可行的。
背景:在devCloud上使用Minikube搭建的单机集群上,试图拉取ubuntu:bionic镜像进行挂载的实验。然后pod一直报告ErrImagePull
docker login
一点问题都没有,直接使用docker也可以拉取镜像。初步估计是缓存没有刷过去,我又不想重新启动minikube集群 ̄へ ̄ 目前的想法是参考Pulling an image from a private registry的指引来配置secret。从私有仓库都能抓取,那我从通过公有仓库的验证下载应该也是可行的。create secret
kubectl create secret generic regcred --from-file=.dockerconfigjson=/home/wty/.docker/config.json --type=kubernetes.io/dockerconfigjson
secret regcred大致如下:在yaml文件中加上imagePullSecrets(这里其实有点疑问,如果有多个私有仓库,多个secret怎么办,k8s会一个个试过去吗)