-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspark-rbac.yml
More file actions
34 lines (34 loc) · 737 Bytes
/
spark-rbac.yml
File metadata and controls
34 lines (34 loc) · 737 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
# The Following is required to allow Spark to be able to manage Driver and Executor pods
# Make sure namespace `ksoot` is already created.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: fabric8-rbac
subjects:
- kind: ServiceAccount
name: default
namespace: ksoot
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: spark
namespace: ksoot
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: spark-role
subjects:
- kind: ServiceAccount
name: spark
namespace: ksoot
roleRef:
kind: ClusterRole
name: edit
apiGroup: rbac.authorization.k8s.io