forked from seqeralabs/nf-tower-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-rbac.yaml
40 lines (40 loc) · 900 Bytes
/
config-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
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: tower-launcher-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: tower-launcher-role
rules:
- apiGroups: [""]
resources: ["pods", "pods/status", "pods/log", "pods/exec", "jobs", "jobs/status", "jobs/log"]
verbs: ["get", "list", "watch", "create", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tower-launcher-rolebind
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: tower-launcher-role
subjects:
- kind: ServiceAccount
name: tower-launcher-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tower-launcher-userbind
subjects:
- kind: User
name: tower-launcher-user
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: tower-launcher-role
apiGroup: rbac.authorization.k8s.io
...