将clusterScoped设置为false, rbac.create设置为true:
[root@localhost ~]# helm install tidb-operator ./tidb-operator
Error: rendered manifests contain a resource that already exists. Unable to continue with install: could not get information about the resource: clusterroles.rbac.authorization.k8s.io “tidb-operator:tidb-controller-manager” is forbidden: User “maozhipeng” cannot get resource “clusterroles” in API group “rbac.authorization.k8s.io” at the cluster scope
将clusterScoped设置为false, rbac.create设置为false:
[root@localhost ~]# kubectl get deployment
NAME READY UP-TO-DATE AVAILABLE AGE
tidb-controller-manager 0/1 0 0 3h1m
tidb-scheduler 0/1 0 0 3h1m
[root@localhost ~]# kubectl get pods
No resources found.
pod没有创建成功