This repository was archived by the owner on Jan 9, 2020. It is now read-only.
  
  
  
  
  
Description
#483 started to create a headless service for the driver pod. However, this service stays around after an application finished and must be deleted manually. I think the submission client should instead be responsible for deleting the service automatically when spark.kubernetes.submission.waitAppCompletion is true. This also applies to other Kubernetes resources, such as the secret for small files shipped via spark.files.
For example, running kubectl get services gave the following output, although the application pubsub-wordcount has finished a day before.
NAME                                        CLUSTER-IP   EXTERNAL-IP   PORT(S)             AGE
kubernetes                                  10.0.0.1     <none>        443/TCP             1d
pubsub-wordcount-1507066935952-driver-svc   None         <none>        7078/TCP,7079/TCP   1d