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 7ba8b76 commit 18e21b0
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions experimental/addons/spark-kubernetes-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,22 @@ vela show spark-application

# Example for how to run a component typed spark-cluster in application

1. Firstly, create a new namespace:
1. Secondly, copy the following example to "spark-app-v1.yaml":

```
kubectl create ns spark-cluster
```

2. Secondly, copy the following example to "spark-app-v1.yaml":
> The addon will create a namespace named "spark-cluster"
```
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: spark-app-v1
namespace: vela-system
namespace: spark-cluster
spec:
components:
- name: my-spark-component
type: spark-cluster
- name: my-spark-application-component
type: spark-application
properties:
name: my-spark-cluster
name: my-spark-app
namespace: spark-cluster
type: Scala
mode: cluster
Expand Down

0 comments on commit 18e21b0

Please sign in to comment.