kubeasz/manifests/metrics-server/resource-reader.yaml

31 lines
517 B
YAML
Raw Normal View History

2019-10-27 22:38:54 +08:00
---
2018-06-17 10:46:25 +08:00
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:metrics-server
rules:
- apiGroups:
- ""
resources:
- pods
- nodes
2019-10-27 22:38:54 +08:00
- nodes/stats
2018-06-17 10:46:25 +08:00
- namespaces
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:metrics-server
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:metrics-server
subjects:
- kind: ServiceAccount
name: metrics-server
namespace: kube-system