@@ -9,13 +9,12 @@ apiVersion: v1
99kind : ServiceAccount
1010metadata :
1111 name : snapshot-controller
12- namespace : default # TODO: replace with the namespace you want for your controller, e.g. kube-system
12+ namespace : kube-system
1313
1414---
1515kind : ClusterRole
1616apiVersion : rbac.authorization.k8s.io/v1
1717metadata :
18- # rename if there are conflicts
1918 name : snapshot-controller-runner
2019rules :
2120 - apiGroups : [""]
@@ -51,19 +50,18 @@ metadata:
5150subjects :
5251 - kind : ServiceAccount
5352 name : snapshot-controller
54- namespace : default # TODO: replace with the namespace you want for your controller, e.g. kube-system
53+ namespace : kube-system
5554roleRef :
5655 kind : ClusterRole
57- # change the name also here if the ClusterRole gets renamed
5856 name : snapshot-controller-runner
5957 apiGroup : rbac.authorization.k8s.io
6058
6159---
6260kind : Role
6361apiVersion : rbac.authorization.k8s.io/v1
6462metadata :
65- namespace : default # TODO: replace with the namespace you want for your controller, e.g. kube-system
6663 name : snapshot-controller-leaderelection
64+ namespace : kube-system
6765rules :
6866- apiGroups : ["coordination.k8s.io"]
6967 resources : ["leases"]
@@ -74,13 +72,11 @@ kind: RoleBinding
7472apiVersion : rbac.authorization.k8s.io/v1
7573metadata :
7674 name : snapshot-controller-leaderelection
77- namespace : default # TODO: replace with the namespace you want for your controller, e.g. kube-system
75+ namespace : kube-system
7876subjects :
7977 - kind : ServiceAccount
8078 name : snapshot-controller
81- namespace : default # TODO: replace with the namespace you want for your controller, e.g. kube-system
8279roleRef :
8380 kind : Role
8481 name : snapshot-controller-leaderelection
8582 apiGroup : rbac.authorization.k8s.io
86-
0 commit comments