Skip to content

Instantly share code, notes, and snippets.

View jkleinkauff's full-sized avatar

Jhonatas Kleinkauff jkleinkauff

View GitHub Profile
@jkleinkauff
jkleinkauff / spark-minikube.sh
Created December 16, 2021 03:39 — forked from jjstill/spark-minikube.sh
Running Spark job on local kubernetes (minikube)
# Starting minikube with 8Gb of memory and 3 CPUs
minikube --memory 8192 --cpus 3 start
# Creating separate Namespace for Spark driver and executor pods
kubectl create namespace spark
# Creating ServiceAccount and ClusterRoleBinding for Spark
kubectl create serviceaccount spark-serviceaccount --namespace spark
kubectl create clusterrolebinding spark-rolebinding --clusterrole=edit --serviceaccount=spark:spark-serviceaccount --namespace=spark