This commit is contained in:
allard
2025-12-03 11:23:31 +01:00
parent b5b4d705cb
commit 3602be6e6e

View File

@@ -19,35 +19,60 @@ rules:
- resourcequotas - resourcequotas
- limitranges - limitranges
- namespaces - namespaces
verbs: ["get", "list", "watch"] verbs:
- get
- list
- watch
# Apps # Apps API group
- apiGroups: ["apps"] - apiGroups: ["apps"]
resources: resources:
- deployments - deployments
- statefulsets - statefulsets
- daemonsets - daemonsets
- replicasets - replicasets
verbs: ["get", "list", "watch"] verbs:
- get
- list
- watch
# Batch # Batch API group
- apiGroups: ["batch"] - apiGroups: ["batch"]
resources: resources:
- jobs - jobs
- cronjobs - cronjobs
verbs: ["get", "list", "watch"] verbs:
- get
- list
- watch
# Autoscaling # Autoscaling API group
- apiGroups: ["autoscaling"] - apiGroups: ["autoscaling"]
resources: resources:
- horizontalpodautoscalers - horizontalpodautoscalers
verbs: ["get", "list", "watch"] verbs:
- get
- list
- watch
# Networking # Networking API group
- apiGroups: ["networking.k8s.io"] - apiGroups: ["networking.k8s.io"]
resources: resources:
- ingresses - ingresses
verbs: ["get", "list", "watch"] verbs:
- get
- list
- watch
# Metrics API group (fix for your last 403)
- apiGroups: ["metrics.k8s.io"]
resources:
- pods
- nodes
verbs:
- get
- list
- watch
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding