舵机重置:错误:OWNER%!D(MISSING)TILLER:拨打TCP 10.96.0.1:443:I / O超时

时间:2018-10-31 14:41:44

标签: kubernetes kubernetes-helm

helm reset时,我得到:

helm reset
Error: Get https://10.96.0.1:443/api/v1/namespaces/kube-system/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp 10.96.0.1:443: i/o timeout

有什么建议吗?

2 个答案:

答案 0 :(得分:2)

GitHub上的issue看起来很接近您的情况。

fossxplorer 提供并得到johnhamelink 改进的解决方案是在automountServiceAccountToken部署中将true参数设置为“ tiller”:

$ kubectl -n kube-system patch deployment tiller-deploy -p '{"spec": {"template": {"spec": {"automountServiceAccountToken": true}}}}'

如果之后出现以下错误:

  

错误:禁止configmaps:用户   “ system:serviceaccount:kube-system:default”无法在以下位置列出配置映射   命名空间“ kube-system”

您应该为服务帐户ClusterRoleBinding创建kube-system:default

$ kubectl --namespace=kube-system create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default

我建议创建单独的服务帐户并在Helm初始化期间选择它:

$ kubectl create serviceaccount --namespace kube-system tiller
$ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
$ helm init --service-account tiller

如果要安全Helm安装,请按照the manual进行操作。

答案 1 :(得分:0)

我有同样的问题,最后通过更改Calico的网络配置解决了该问题,在Calico部署和Kubeadm init配置文件中都将网络更改为:172.16.0.0/16,不确定为什么要使用默认网络(192.168 .0.0 / 16)不能正常工作,我的本地网络是192.168.200.0,希望这可以帮助遇到相同问题的人。