Rancher Server Set:
Rancher:2.7
Installd: rke2
I want create a role,can view only workloads and pods logs, configuration, and status. When I’m done setting it up,the role have no tab “Metrics”, like the screenshot.But when i login with admin, I have the tab “Metrics”.
So,please tell me how set the permission.Thank you!!
This is my role set yaml:
rules:
- apiGroups:
- “”
nonResourceURLs:
resourceNames:
resources: - namespaces
verbs: - list
- watch
- get
- “”
- apiGroups:
- “”
nonResourceURLs:
resourceNames:
resources: - pods
verbs: - list
- watch
- get
- “”
- apiGroups:
- “”
nonResourceURLs:
resourceNames:
resources: - services
verbs: - list
- watch
- get
- “”
- apiGroups:
- apps
nonResourceURLs:
resourceNames:
resources: - daemonsets
verbs: - list
- watch
- get
- apps
- apiGroups:
- apps
nonResourceURLs:
resourceNames:
resources: - deployments
verbs: - list
- watch
- get
- apps
- apiGroups:
-
networking.k8s.io
nonResourceURLs:
resourceNames:
resources: - ingresses
verbs: - list
- watch
- get
-
networking.k8s.io