bin/spark-submit \
--master k8s://https://10.4.101.85:6443 \
--deploy-mode cluster \
--name spark-pi \
--class org.apache.spark.examples.SparkPi \
--conf spark.kubernetes.namespace=spark \
--conf spark.kubernetes.authenticate.driver.serviceAccountName=spark\
--conf spark.executor.instances=5 \
--conf spark.kubernetes.container.image=registry-vpc.cn-hangzhou.aliyuncs.com/workbei-public/spark:2.4.4 \
local:///opt/spark/examples/jars/spark-examples_2.11-2.4.4.jar
kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=spark:spark --namespace=spark