apache / rocketmq-operator

Apache RocketMQ Operator
https://rocketmq.apache.org/
Apache License 2.0
314 stars 127 forks source link

:rocketmq-operator" cannot get resource "leases #113

Closed feiyuyitiao closed 2 years ago

feiyuyitiao commented 2 years ago

after make deploy

check operator log, which prints:

E0712 08:48:26.825666       1 leaderelection.go:330] error retrieving resource lock default/2516c052.apache.org: leases.coordination.k8s.io "2516c052.apache.org" is forbidden: User "system:serviceaccount:default:rocketmq-operator" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "default"
feiyuyitiao commented 2 years ago

fix by add 'ClusterRole' leases.