kubernets使用helm安装Tiller 失败
作者:互联网
问题描述
安装服务端 Tiller
helm init --upgrade --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.3 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
报错
$HELM_HOME has been configured at /root/.helm.
Error: error installing: the server could not find the requested resou
一直出现初始化失败
解决办法
helm 安装失败 需要删除 tiller
kubectl get all -n kube-system -l app=helm -o name|xargs kubectl delete -n kube-system
重新安装
helm init --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | sed 's@ replicas: 1@ replicas: 1\n selector: {"matchLabels": {"app": "helm", "name": "tiller"}}@' | kubectl apply -f -
安装完成后
kubectl get pods -n kube-system
查看信息发现问题
NAME READY STATUS RESTARTS AGE
tiller-deploy-6fc68fb6d5-99blh 0/1 ImagePullBackOff 0 14h
获取镜像失败
手动拉取镜像
下载镜像:
去 dockerhub 查找镜像fishead/gcr.io.kubernetes-helm.tiller
docker pull fishead/gcr.io.kubernetes-helm.tiller:v2.12.3
改tag
docker tag fishead/gcr.io.kubernetes-helm.tiller:v2.12.3 gcr.io/kubernetes-helm/tiller:v2.12.3
重新部署
删除tiller
helm reset -f
初始化,重新部署tiller
标签:kubectl,kubernetes,kubernets,gcr,io,helm,tiller,Tiller 来源: https://www.cnblogs.com/cnbai/p/13206046.html