报错如下:
TASK [preinstall : Stop if Helm is not available] ******************************
fatal: [localhost]: FAILED! => {
"assertion": "helm_check.rc == 0",
"changed": false,
"evaluated_to": false,
"msg": "Helm is not available"
}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=1
解决办法:
授权:kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
授权后重启安装:kubectl delete pod ks-installer-xxxxxx-xxxxx -n kubesphere-system (通过kubectl get pods --all-namespaces查询安装失败的pod)