总体安装步骤参照我的blog
https://blog.csdn.net/zhixingheyi_tian/article/details/89152767
但是权限方面会遇到一些问题
helm init
# helm init
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Error: error installing: deployments.extensions is forbidden: User "test" cannot create deployments.extensions in the namespace "kube-system": no RBAC policy matched
此时要在切换到 system:admin 用户下,才能安装成功。
或者给User test 赋权限 才可以
安装sparkoperator 遇到的权限问题
helm install incubator/sparkoperator --namespace spark-operator
如果如下错误
Helm: Error: no available release name found
需要执行以下赋权操作
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'