kubewatch icon indicating copy to clipboard operation
kubewatch copied to clipboard

cannot list resource on Google Kubenestes Engine

Open jackkwok opened this issue 4 years ago • 2 comments

github.com/bitnami-labs/kubewatch/pkg/controller/controller.go:466: Failed to list *v1.Namespace: namespaces is forbidden: User "system:serviceaccount:default:kubewatch" cannot list resource "namespaces" in API group "" at the cluster scope

I followed the Kubectl RBAC instructions step by step but still received the above error. Please help.

jackkwok avatar Sep 29 '20 05:09 jackkwok

have you found the solution?

gennway avatar Oct 14 '20 12:10 gennway

@jackkwok you have to edit yaml file that contains ClusterRole

rules:
  - apiGroups: [""]
    resources: ["pods", "replicationcontrollers", "namespaces", "deployments", "services"] # <--- add resources here
    verbs: ["get", "watch", "list"]

cthulhu666 avatar Oct 16 '20 11:10 cthulhu666