Loading

helm Error: could not find a ready tiller pod

在docker for windows中使用helm报错,原因为 tiller 的镜像拉取失败。处理方法如下:
1.查看 tiller-deploy-xxx容器名称:kubectl get pods --namespace kube-system
2.查看详细内容:kubectl --namespace kube-system describe pod tiller-deploy-7d6dbd958-sb92l

可以看到错误内容:

  Normal   Scheduled  22m                   default-scheduler        Successfully assigned kube-system/tiller-deploy-7d6dbd958-sb92l to docker-desktop
  Normal   Pulling    20m (x4 over 22m)     kubelet, docker-desktop  Pulling image "gcr.io/kubernetes-helm/tiller:v2.16.6"
  Warning  Failed     19m (x4 over 22m)     kubelet, docker-desktop  Failed to pull image "gcr.io/kubernetes-helm/tiller:v2.16.6": rpc error: code = Unknown desc = Error response from daemon: Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  Warning  Failed     19m (x4 over 22m)     kubelet, docker-desktop  Error: ErrImagePull
  Normal   BackOff    17m (x15 over 22m)    kubelet, docker-desktop  Back-off pulling image "gcr.io/kubernetes-helm/tiller:v2.16.6"
  Warning  Failed     7m10s (x56 over 22m)  kubelet, docker-desktop  Error: ImagePullBackOff

3.通过阿里云拉取镜像重命名

docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.6
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.6 gcr.io/kubernetes-helm/tiller:v2.16.6 
docker rmi registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.6 

4.重启容器tiller-deploy-xxx

posted @ 2020-04-15 09:42  wswind  阅读(3795)  评论(0编辑  收藏  举报