-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy path002-rbac.yaml
More file actions
41 lines (41 loc) · 793 Bytes
/
002-rbac.yaml
File metadata and controls
41 lines (41 loc) · 793 Bytes
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
---
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: {{.Namespace}}
name: network-resources-injector-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: network-resources-injector
rules:
- apiGroups:
- k8s.cni.cncf.io
resources:
- network-attachment-definitions
verbs:
- 'watch'
- 'list'
- 'get'
- apiGroups:
- ""
resources:
- configmaps
verbs:
- 'watch'
- 'list'
- 'get'
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: network-resources-injector-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: network-resources-injector
subjects:
- kind: ServiceAccount
name: network-resources-injector-sa
namespace: {{.Namespace}}