nacos-group / nacos-k8s

This project contains a Nacos Docker image meant to facilitate the deployment of Nacos on Kubernetes using StatefulSets.
578 stars 468 forks source link

hotfix:部署nacos-operator-all.yaml时operator提示 cannot get resource "leases" in API group "coordination.k8s.io" #407

Closed zcerhub closed 1 year ago

zcerhub commented 1 year ago

1.修改使用kubectl apply -f nacos-operator-all.yaml方式部署时出现cannot get resou……rce "leases" in API group "coordination.k8s.io"

2.在nacos的clusterrole中给leases授予的verbs太多了,参考eck:https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-elastic-agent-fleet-quickstart.html和argo workflow https://github.com/argoproj/argo-workflows/blob/master/manifests/cluster-install/workflow-controller-rbac/workflow-controller-role.yaml。针对lease授予get、create和update

wilsonwu commented 1 year ago

Seems dup with #387

paderlol commented 1 year ago

已经有修复了,所以关闭这个pr