Github user ifilonenko commented on a diff in the pull request:
https://github.com/apache/spark/pull/21669#discussion_r201696463
--- Diff:
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/Constants.scala
---
@@ -81,4 +83,35 @@ private[spark] object Constants {
val KUBERNETES_MASTER_INTERNAL_URL = "https://kubernetes.default.svc"
val DRIVER_CONTAINER_NAME = "spark-kubernetes-driver"
val MEMORY_OVERHEAD_MIN_MIB = 384L
+
+ // Hadoop Configuration
+ val HADOOP_FILE_VOLUME = "hadoop-properties"
+ val HADOOP_CONF_DIR_PATH = "/etc/hadoop/conf"
+ val ENV_HADOOP_CONF_DIR = "HADOOP_CONF_DIR"
+ val HADOOP_CONF_DIR_LOC = "spark.kubernetes.hadoop.conf.dir"
+ val HADOOP_CONFIG_MAP_SPARK_CONF_NAME =
+ "spark.kubernetes.hadoop.executor.hadoopConfigMapName"
+
+ // Kerberos Configuration
+ val KERBEROS_DELEGEGATION_TOKEN_SECRET_NAME =
+ "spark.kubernetes.kerberos.delegation-token-secret-name"
+ val KERBEROS_KEYTAB_SECRET_NAME =
+ "spark.kubernetes.kerberos.key-tab-secret-name"
+ val KERBEROS_KEYTAB_SECRET_KEY =
+ "spark.kubernetes.kerberos.key-tab-secret-key"
+ val KERBEROS_SPARK_USER_NAME =
+ "spark.kubernetes.kerberos.spark-user-name"
+ val KERBEROS_SECRET_LABEL_PREFIX =
+ "hadoop-tokens"
+ val SPARK_HADOOP_PREFIX = "spark.hadoop."
+ val HADOOP_SECURITY_AUTHENTICATION =
+ SPARK_HADOOP_PREFIX + "hadoop.security.authentication"
+
+ // Kerberos Token-Refresh Server
+ val KERBEROS_REFRESH_LABEL_KEY = "refresh-hadoop-tokens"
--- End diff --
Agreed but that would be out of the scope of this PR as the renewal service
is a separate micro-service (instead of a running thread), and thereby that
logic would be housed in a separate PR governing the opinion of the renewal
service pods "DT retrieving" protocol
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]