Created
June 13, 2023 13:05
-
-
Save danpawlik/a75692577b1ed323609b8715a8ac69c2 to your computer and use it in GitHub Desktop.
cluster-role-openshift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# from https://github.com/kubernetes/dashboard/issues/4179 | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
labels: | |
k8s-app: kubernetes-dashboard | |
name: kubernetes-dashboard | |
rules: | |
# Allow Metrics Scraper to get metrics from the Metrics server | |
- apiGroups: ["metrics.k8s.io"] | |
resources: ["pods", "nodes"] | |
verbs: ["get", "list", "watch"] | |
# Other resources | |
- apiGroups: [""] | |
resources: ["nodes", "namespaces", "pods", "serviceaccounts", "services", "configmaps", "endpoints", "persistentvolumeclaims", "replicationcontrollers", "replicationcontrollers/scale", "persistentvolumeclaims", "persistentvolumes", "bindings", "events", "limitranges", "namespaces/status", "pods/log", "pods/status", "replicationcontrollers/status", "resourcequotas", "resourcequotas/status", "secrets"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["apps"] | |
resources: ["daemonsets", "deployments", "deployments.apps", "deployments/scale", "replicasets", "replicasets/scale", "statefulsets"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["autoscaling"] | |
resources: ["horizontalpodautoscalers"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["batch"] | |
resources: ["cronjobs", "jobs", "jobs.batch"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["extensions"] | |
resources: ["daemonsets", "deployments", "deployments/scale", "networkpolicies", "replicasets", "replicasets/scale", "replicationcontrollers/scale"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["networking.k8s.io"] | |
resources: ["ingresses", "ingressclasses", "networkpolicies"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["policy"] | |
resources: ["poddisruptionbudgets"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["storage.k8s.io"] | |
resources: ["storageclasses", "volumeattachments"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["rbac.authorization.k8s.io"] | |
resources: ["clusterrolebindings", "clusterroles", "roles", "rolebindings"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: ["apiextensions.k8s.io"] | |
resources: ["customresourcedefinitions.apiextensions.k8s.io"] | |
verbs: ["get", "list", "watch"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment