k8s-ClusterRole

k8s ClusterRole yaml 模板

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: template-namespaced-resources___quhui
rules:
- apiGroups:
- "*"
resources:
# - "bindings"
- "configmaps"
- "endpoints"
# - "limitranges"
- "persistentvolumeclaims"
- "pods"
- "pods/log"
- "pods/portforward"
- "podtemplates"
- "replicationcontrollers"
- "resourcequotas"
- "secrets"
# - "serviceaccounts"
- "services"
# - "controllerrevisions"
# - "statefulsets"
# - "localsubjectaccessreviews"
# - "horizontalpodautoscalers"
# - "cronjobs"
# - "jobs"
# - "leases"
- "events"
- "daemonsets"
- "deployments"
- "replicasets"
- "ingresses"
- "networkpolicies"
- "poddisruptionbudgets"
# - "rolebindings"
# - "roles"
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]