Skip to content

Commit

Permalink
[Addon kubevela#603] Add Apache Spark as a experimental addon
Browse files Browse the repository at this point in the history
Signed-off-by: yanghua <[email protected]>
  • Loading branch information
yanghua committed Feb 27, 2023
1 parent 4e1246a commit fefb989
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions experimental/addons/spark-kubernetes-operator/template.cue
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,69 @@ output: {
kind: "Application"
spec: {
components: [
{
type: "k8s-objects"
name: "spark-operator-ns"
properties: objects: [{
apiVersion: "v1"
kind: "Namespace"
metadata: name: parameter.namespace
}]
},
{
type: "k8s-objects"
name: "spark-cluster-ns"
properties: objects: [{
apiVersion: "v1"
kind: "Namespace"
metadata: name: "spark-cluster"
},
{
apiVersion: "v1"
kind: "ServiceAccount"
metadata: {
name: "spark"
namespace: "spark-cluster"
}
}]
},
{
name: "spark-operator-helm"
type: "helm"
dependsOn: ["spark-operator-ns"]
type: "helm"
properties: {
repoType: "helm"
url: "https://googlecloudplatform.github.io/spark-on-k8s-operator/"
chart: "spark-operator"
targetNamespace: parameter["namespace"]
version: "1.1.26"
values: {
image: {
repository: parameter["imageRepository"]
tag: parameter["imageTag"]
}
{
type: "k8s-objects"
name: "spark-operator-ns"
properties: objects: [{
apiVersion: "v1"
kind: "Namespace"
metadata: name: parameter.namespace
}]
},
{
type: "k8s-objects"
name: "spark-cluster-ns"
properties: objects: [{
apiVersion: "v1"
kind: "Namespace"
metadata: name: "spark-cluster"
},
{
apiVersion: "v1"
kind: "ServiceAccount"
metadata: {
name: "spark"
namespace: "spark-cluster"
}
}]
},
{
name: "spark-operator-helm"
type: "helm"
dependsOn: ["spark-operator-ns"]
type: "helm"
properties: {
repoType: "helm"
url: "https://googlecloudplatform.github.io/spark-on-k8s-operator/"
chart: "spark-operator"
targetNamespace: parameter["namespace"]
version: "1.1.26"
values: {
image: {
repository: parameter["imageRepository"]
tag: parameter["imageTag"]
}

serviceAccounts: {
spark: {
create: parameter["createSparkServiceAccount"]
}
spark: {
create: parameter["createSparkServiceAccount"]
}
}

serviceAccounts: {
sparkoperator: {
name: "spark-kubernetes-operator"
}
}
sparkoperator: {
name: "spark-kubernetes-operator"
}
}

webhook: {
enable: parameter["createWebhook"]
}

}
}
},
enable: parameter["createWebhook"]
}
}
}
},
]

policies: [
{
name: "gc-dependency",
Expand Down

0 comments on commit fefb989

Please sign in to comment.