创建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 查看,删除后再创建就没有问题了

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐