Skip to content

Commit

Permalink
Add required RBAC rules to the metrics server yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Apr 3, 2018
1 parent 9a838fc commit 592921a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions demos/monitoring/metrics-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,40 @@ spec:
insecureSkipTLSVerify: true
groupPriorityMinimum: 100
versionPriority: 100
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:metrics-server
rules:
- apiGroups:
- ""
resources:
- pods
- nodes
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- "extensions"
resources:
- deployments
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

0 comments on commit 592921a

Please sign in to comment.