Commit 8580775 Mengqi Yu
committed
1 parent a5a1bf2 commit 8580775 Copy full SHA for 8580775
File tree 5 files changed +58
-0
lines changed
docs/book/src/cronjob-tutorial/testdata/project/config/rbac
testdata/project-v2/config/rbac
5 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1
1
resources :
2
2
- role.yaml
3
3
- role_binding.yaml
4
+ - leader_election_role.yaml
5
+ - leader_election_role_binding.yaml
4
6
# Comment the following 3 lines if you want to disable
5
7
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
6
8
# which protects your /metrics endpoint.
Original file line number Diff line number Diff line change
1
+ # permissions to do leader election.
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
+ kind : Role
4
+ metadata :
5
+ name : leader-election-role
6
+ rules :
7
+ - apiGroups :
8
+ - " "
9
+ resources :
10
+ - configmaps
11
+ verbs :
12
+ - get
13
+ - list
14
+ - watch
15
+ - create
16
+ - update
17
+ - patch
18
+ - delete
19
+ - apiGroups :
20
+ - " "
21
+ resources :
22
+ - configmaps/status
23
+ verbs :
24
+ - get
25
+ - update
26
+ - patch
27
+ - apiGroups :
28
+ - " "
29
+ resources :
30
+ - events
31
+ verbs :
32
+ - create
Original file line number Diff line number Diff line change
1
+ apiVersion : rbac.authorization.k8s.io/v1
2
+ kind : RoleBinding
3
+ metadata :
4
+ name : leader-election-rolebinding
5
+ roleRef :
6
+ apiGroup : rbac.authorization.k8s.io
7
+ kind : Role
8
+ name : leader-election-role
9
+ subjects :
10
+ - kind : ServiceAccount
11
+ name : default
12
+ namespace : system
Original file line number Diff line number Diff line change @@ -64,4 +64,10 @@ rules:
64
64
- get
65
65
- update
66
66
- patch
67
+ - apiGroups:
68
+ - ""
69
+ resources:
70
+ - events
71
+ verbs:
72
+ - create
67
73
`
Original file line number Diff line number Diff line change 24
24
- get
25
25
- update
26
26
- patch
27
+ - apiGroups :
28
+ - " "
29
+ resources :
30
+ - events
31
+ verbs :
32
+ - create
You can’t perform that action at this time.
0 commit comments