Github user mccheah commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21748#discussion_r205177861
  
    --- Diff: docs/running-on-kubernetes.md ---
    @@ -117,6 +117,45 @@ If the local proxy is running at localhost:8001, 
`--master k8s://http://127.0.0.
     spark-submit. Finally, notice that in the above example we specify a jar 
with a specific URI with a scheme of `local://`.
     This URI is the location of the example jar that is already in the Docker 
image.
     
    +## Client Mode
    +
    +Starting with Spark 2.4.0, it is possible to run Spark applications on 
Kubernetes in client mode. When your application
    +runs in client mode, the driver can run inside a pod or on a physical 
host. When running an application in client mode,
    +it is recommended to account for the following factors:
    +
    +### Client Mode Networking
    +
    +Spark executors must be able to connect to the Spark driver over a 
hostname and a port that is routable from the Spark
    +executors. The specific network configuration that will be required for 
Spark to work in client mode will vary per
    +setup. If you run your driver inside a Kubernetes pod, you can use a
    +[headless 
service](https://kubernetes.io/docs/concepts/services-networking/service/#headless-services)
 to allow your
    +driver pod to be routable from the executors by a stable hostname. When 
deploying your headless service, ensure that
    +the service's label selector will only match the driver pod and no other 
pods; it is recommended to assign your driver
    +pod a sufficiently unique label and to use that label in the label 
selector of the headless service. Specify the driver's
    +hostname via `spark.driver.host` and your spark driver's port to 
`spark.driver.port`.
    --- End diff --
    
    Yeah manual setup is fine for now. Think additional docs around how to do 
all this can be a separate PR.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to