Skip to content

Commit

Permalink
Add clusterrole appuio:metrics-viewer
Browse files Browse the repository at this point in the history
This clusterrole can be used to delegate access to the user-workload
monitoring metrics. By binding this clusterrole in a namespace it gives
the subjects access to all metrics in that namespace
  • Loading branch information
glrf committed Nov 22, 2022
1 parent 7ce4a90 commit 7ee4889
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ parameters:
- edit
- patch
- delete
appuio:metrics-reader:
rules:
- apiGroups: ['']
resources: [pods]
verbs:
- get

bypassNamespaceRestrictions:
# Roles are not supported for the APPUiO Cloud Agent. Should be left empty.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations: {}
labels:
app.kubernetes.io/component: appuio-cloud
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: appuio-cloud
name: appuio-metrics-reader
name: appuio:metrics-reader
rules:
- apiGroups:
- ''
resources:
- pods
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations: {}
labels:
Expand Down

0 comments on commit 7ee4889

Please sign in to comment.