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

    https://github.com/apache/spark/pull/19717#discussion_r154782904
  
    --- Diff: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/Config.scala
 ---
    @@ -55,14 +63,35 @@ private[spark] object Config extends Logging {
       val CA_CERT_FILE_CONF_SUFFIX = "caCertFile"
     
       val KUBERNETES_SERVICE_ACCOUNT_NAME =
    -    ConfigBuilder(s"$APISERVER_AUTH_DRIVER_CONF_PREFIX.serviceAccountName")
    +    
ConfigBuilder(s"$KUBERNETES_AUTH_DRIVER_CONF_PREFIX.serviceAccountName")
           .doc("Service account that is used when running the driver pod. The 
driver pod uses " +
             "this service account when requesting executor pods from the API 
server. If specific " +
             "credentials are given for the driver pod to use, the driver will 
favor " +
             "using those credentials instead.")
           .stringConf
           .createOptional
     
    +  val KUBERNETES_DRIVER_LIMIT_CORES =
    +    ConfigBuilder("spark.kubernetes.driver.limit.cores")
    +      .doc("Specify the hard cpu limit for the driver pod")
    +      .stringConf
    +      .createOptional
    +
    +  val KUBERNETES_EXECUTOR_LIMIT_CORES =
    +    ConfigBuilder("spark.kubernetes.executor.limit.cores")
    +      .doc("Specify the hard cpu limit for a single executor pod")
    --- End diff --
    
    Done.


---

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

Reply via email to