Adapted for sparklyr from cloud.google.com/solutions/spark-on-kubernetes-engine:
First, configure the cluster using Google Cloud client and kubectl:
gcloud config set compute/zone us-central1-f
gcloud container clusters create spark-on-gke --machine-type n1-standard-2Next we need to bind the cluster admin to your email (you can retrieve your account email with gcloud config get-value account if needed):