lightweight go server that exposes spark-submit
- create the cluster
kind create cluster
- create spark namespace & serviceaccount
kubectl create -f example/spark.yaml
- proxy kubernetes API to host
kubectl proxy
- run the go server locally
go run . --spark-home=$SPARK_HOME_DIR --master=k8s://http://127.0.0.1:8001 --spark-conf-dir=example/sparkConf --debug
- start the example
curl -XPOST http://localhost:7070?preset=pi
- delete the kind cluster
kind cluster delete`