title: Cannot forward spark port on google spark operator in kubernetes
body: <p>I am trying to connect to a spark port 4040 for an application that runs on Spark operator in Kubernetes.</p>
  <p>Operator version:</p>
  <p><code>helm install latest spark-operator/spark-operator --namespace spark-operator --create-namespace --set image.tag=v1beta2-1.3.2-3.1.1 --set image.repository=ghcr.io/googlecloudplatform/spark-operator</code></p>
  <p>Port forward command: <code>kubectl port-forward spark-minio-driver -n spark-operator 4040:4040</code> seems to work at first: Forwarding from 127.0.0.1:4040 -&gt; 4040.</p>
  <p>However, trying to access this on http://localhost:4040/ throws:</p>
  <p><code>an error occurred forwarding 4040 -&gt; 4040: error forwarding port 4040 to pod 01246165e6a23710784b34cb0b0a06613477f593e5a7f07ca7b71a7a349f5bc6, uid : exit status 1: 2022/03/14 12:28:59 socat[94708] E connect(16, AF=2 127.0.0.1:4040, 16): Connection refused</code></p>
  <p>Any idea what might be wrong? Thanks.</p>