Created
November 14, 2019 11:24
-
-
Save rafaelfelix/24e9765fe0e353be14273b8d80adac89 to your computer and use it in GitHub Desktop.
spark-on-k8s-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: spark | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: spark-cluster-role | |
rules: | |
- apiGroups: [""] # "" indicates the core API group | |
resources: ["pods"] | |
verbs: ["get", "watch", "list", "create", "delete"] | |
- apiGroups: [""] # "" indicates the core API group | |
resources: ["services"] | |
verbs: ["get", "create", "delete"] | |
- apiGroups: [""] # "" indicates the core API group | |
resources: ["configmaps"] | |
verbs: ["get", "create", "delete"] | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: spark-cluster-role-binding | |
subjects: | |
- kind: ServiceAccount | |
name: spark | |
namespace: default | |
roleRef: | |
kind: ClusterRole | |
name: spark-cluster-role | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment