The ClusterRoleBinding "kafka-operator" is invalid: roleRef: Invalid value: rbac.RoleRef{APIGroup:"r

创建clusterrolebinding报错,如下

The ClusterRoleBinding "kafka-operator" is invalid: roleRef: Invalid value: rbac.RoleRef{APIGroup:"rbac.authorization.k8s.io", Kind:"ClusterRole", Name:"kafka-operator"}: cannot change roleRef

其实报错中已经说明,“cannot change roleRef“说明已经存在,使用kubectl get clusterrolebinding 查看,删除后再创建就没有问题了

你可能感兴趣的:(其他)