-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppdm-discovery-rbac.yaml
107 lines (107 loc) · 2.61 KB
/
ppdm-discovery-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
kind: Namespace
apiVersion: v1
metadata:
name: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
---
kind: ConfigMap
apiVersion: v1
metadata:
name: ppdm-custom-config-resources
namespace: powerprotect
data:
Namespace: powerprotect
ClusterRoleBinding: powerprotect:cluster-role-binding
ServiceAccount: ppdm-serviceaccount
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: ppdm-discovery-serviceaccount
namespace: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: powerprotect:discovery-clusterrole
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
rules:
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterrolebindings"]
verbs: ["get", "list"]
resourceNames: ["powerprotect:cluster-role-binding"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["create"]
resourceNames: ["powerprotect"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list","watch"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["create", "get", "list", "update"]
- apiGroups: ["powerprotect.dell.com"]
resources: ['*']
verbs: ['*']
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: powerprotect:discovery-cluster-rolebinding
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
subjects:
- kind: ServiceAccount
name: ppdm-discovery-serviceaccount
namespace: powerprotect
roleRef:
kind: ClusterRole
name: powerprotect:discovery-clusterrole
apiGroup: rbac.authorization.k8s.io
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ppdm-discovery-role
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: ppdm-discovery-rolebinding
namespace: powerprotect
labels:
app.kubernetes.io/part-of: powerprotect.dell.com
roleRef:
kind: Role
name: ppdm-discovery-role
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: ppdm-discovery-serviceaccount
namespace: powerprotect