Skip to content

Commit 72c96e0

Browse files
committed
More feedback
1 parent 001a525 commit 72c96e0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/running-on-kubernetes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,19 @@ setup. If you run your driver inside a Kubernetes pod, you can use a
131131
[headless service](https://kubernetes.io/docs/concepts/services-networking/service/#headless-services) to allow your
132132
driver pod to be routable from the executors by a stable hostname. When deploying your headless service, ensure that
133133
the service's label selector will only match the driver pod and no other pods; it is recommended to assign your driver
134-
pod a sufficiently unique label and to use that label in the node selector of the headless service. Specify the driver's
134+
pod a sufficiently unique label and to use that label in the label selector of the headless service. Specify the driver's
135135
hostname via `spark.driver.host` and your spark driver's port to `spark.driver.port`.
136136

137137
### Client Mode Executor Pod Garbage Collection
138138

139139
If you run your Spark driver in a pod, it is highly recommended to set `spark.driver.pod.name` to the name of that pod.
140140
When this property is set, the Spark scheduler will deploy the executor pods with an
141-
[owner reference](https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/), which in turn will
141+
[OwnerReference](https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/), which in turn will
142142
ensure that once the driver pod is deleted from the cluster, all of the application's executor pods will also be deleted.
143143
The driver will look for a pod with the given name in the namespace specified by `spark.kubernetes.namespace`, and
144-
all executor pods will have their owner reference field set to point to that pod. Be careful to avoid setting the
145-
owner reference to a pod that is not actually that driver pod, or else the executors may be terminated prematurely when
146-
the wrong pod is terminated.
144+
an OwnerReference pointing to that pod will be added to each executor pod's OwnerReferences list. Be careful to avoid
145+
setting the OwnerReference to a pod that is not actually that driver pod, or else the executors may be terminated
146+
prematurely when the wrong pod is deleted.
147147

148148
If your application is not running inside a pod, or if `spark.driver.pod.name` is not set when your application is
149149
actually running in a pod, keep in mind that the executor pods may not be properly deleted from the cluster when the

0 commit comments

Comments
 (0)