12345678910111213141516171819202122232425262728293031 |
- # Source: Pods.metrics.k8s.io is forbidden: User "system:kube-proxy"
- # https://forums.rancher.com/t/pods-metrics-k8s-io-is-forbidden-user-system-kube-proxy/12058/3
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRole
- metadata:
- name: view-metrics
- rules:
- - apiGroups:
- - metrics.k8s.io
- resources:
- - pods
- - nodes
- verbs:
- - get
- - list
- - watch
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRoleBinding
- metadata:
- name: view-metrics
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: view-metrics
- subjects:
- - apiGroup: rbac.authorization.k8s.io
- kind: User
- name: system:kube-proxy
|