title: Sparklyr k8s gClouid - Pods aren't running
body: <p>everybody <br>
  As the title says, I would be curious to understand why I can't connect via Sparklyr to gCloud clusters using kubernetes.</p>
  
  <p>The steps to configure the system were as follows:</p>
  
  <ul>
  <li>project creation on gCloud (free version 300dollars)</li>
  <li>Cloud SDK installation on MacOS</li>
  <li>Installation Kubectl binary with curl on MacOS</li>
  <li>Docker installation</li>
  <li><strong>By terminal</strong>:</li>
  <li><em>configure the cluster</em><br>
  <code>gcloud config set compute/zone us-central1-f
  gcloud container clusters create spark-on-gke --machine-type n1-standard-2</code></li>
  <li><em>bind the cluster admin to email</em><br>
  <code>kubectl create clusterrolebinding user-admin-binding --clusterrole=cluster-admin --user=pesca@gmail.com
  kubectl create clusterrolebinding --clusterrole=cluster-admin --serviceaccount=default:default spark-admin</code></li>
  <li><em>From R connect to the MASTER_IP, importing the public image offered by jluraschi</em><br>
  <code>remotes::install_github("rstudio/sparklyr”); library(sparklyr)
  sc &lt;- spark_connect(config = spark_config_kubernetes(
  "k8s://https://&lt;k8s-ip&gt;",
  account = "default",
  image = "docker.io/jluraschi/spark:sparklyr",
  version = "2.4"))</code></li>
  </ul>
  
  <p>And the error that appears is:
  <a href="https://i.stack.imgur.com/B7a00.png" rel="nofollow noreferrer">Error from server (NotFound): pods "sparklyr-c27317e4b89" not found</a></p>