HwangDongJun commented on code in PR #58187:
URL: https://github.com/apache/spark/pull/58187#discussion_r4345315954


##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/KubernetesClientApplication.scala:
##########
@@ -151,7 +167,7 @@ private[spark] class Client(
     var createdDriverPod: Pod = null
     try {
       createdDriverPod =
-        
kubernetesClient.pods().inNamespace(conf.namespace).resource(resolvedDriverPod).create()
+        
kubernetesClient.pods().inNamespace(conf.namespace).resource(podToCreate).create()

Review Comment:
   Added to the prerequisites bullet in `docs/running-on-kubernetes.md`: if 
`spark-submit` stops after it created the driver pod and before it removed the 
gate, for example when it is killed, the driver pod stays in `SchedulingGated` 
and nothing expires it, and it can be removed with `spark-submit --kill` or 
`kubectl delete pod`. As this only matters when the setting is `true`, the note 
sits with the other conditions of enabling it. I did not change the code for 
this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to