Created
June 9, 2022 14:04
-
-
Save sairamkrish/d8607ff38b98241fada3ab52657d3794 to your computer and use it in GitHub Desktop.
Spark application deployment file
This file contains hidden or 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
# | |
# Copyright 2018 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
# apiVersion: v1 | |
# kind: Namespace | |
# metadata: | |
# name: spark | |
# --- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: spark | |
namespace: default | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
namespace: default | |
name: spark-role | |
rules: | |
- apiGroups: [""] | |
resources: ["pods"] | |
verbs: ["*"] | |
- apiGroups: [""] | |
resources: ["services"] | |
verbs: ["*"] | |
- apiGroups: [""] | |
resources: ["configmaps"] | |
verbs: ["*"] | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: RoleBinding | |
metadata: | |
name: spark-role-binding | |
namespace: default | |
subjects: | |
- kind: ServiceAccount | |
name: spark | |
namespace: default | |
roleRef: | |
kind: Role | |
name: spark-role | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment