-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppdm-rbac.yaml
141 lines (141 loc) · 4.09 KB
/
ppdm-rbac.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
kind: Namespace
apiVersion: v1
metadata:
name: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: ppdm-serviceaccount
namespace: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: powerprotect:cluster-role
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
rules:
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterrolebindings"]
verbs: ["create", "get", "list"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterroles"]
verbs: ["bind"]
resourceNames: ["cluster-admin"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["create", "get", "list"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get"]
- apiGroups: [""]
resources: ["serviceaccounts"]
verbs: ["create"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: [""]
resources: ["services"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: ["backupdriver.cnsdp.vmware.com"]
resources: ["snapshots"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: ["backupdriver.cnsdp.vmware.com"]
resources: ["deletesnapshots"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: ["backupdriver.cnsdp.vmware.com"]
resources: ["deletesnapshots/status"]
verbs: ["create", "get", "list", "update", "watch", "delete"]
- apiGroups: ["apps"]
resources: ["deployments", "deployments/scale"]
verbs: ["create", "get", "list", "update"]
- apiGroups: ["apps"]
resources: ["replicasets", "replicasets/scale"]
verbs: ["get", "list", "update"]
- apiGroups: ["apps"]
resources: ["daemonsets", "daemonset/scale"]
verbs: ["get", "list", "update"]
- apiGroups: ["apps"]
resources: ["statefulsets", "statefulsets/scale"]
verbs: ["get", "list", "update", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["create", "get", "update", "list"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"]
verbs: ["create", "get", "list", "watch", "delete"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["create", "get", "list", "watch", "delete"]
- apiGroups: ["powerprotect.dell.com", "velero.io"]
resources: ['*']
verbs: ['*']
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: powerprotect:cluster-role-binding
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
subjects:
- kind: ServiceAccount
name: ppdm-serviceaccount
namespace: powerprotect
roleRef:
kind: ClusterRole
name: powerprotect:cluster-role
apiGroup: rbac.authorization.k8s.io
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ppdmrole
namespace: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
rules:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ppdmrolebinding
namespace: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
roleRef:
kind: Role
name: ppdmrole
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ppdm-serviceaccount
namespace: powerprotect