Xi Chen created SPARK-48669:
-------------------------------
Summary: Limit K8s pod name length to follow DNS Subdomain Names
rule
Key: SPARK-48669
URL: https://issues.apache.org/jira/browse/SPARK-48669
Project: Spark
Issue Type: Bug
Components: k8s
Affects Versions: 3.5.1
Reporter: Xi Chen
In SPARK-39614, we extended the allowed name length from 63 to 253 for executor
pod and config map.
However, when the pod name is exceeded length 253, we don't truncate it. This
leads to error when creating the Spark pods.
Error example:
{code:java}
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure
executing: POST at:
https://kubernetes.default.svc.cluster.local:443/api/v1/namespaces/foo/pods.
Message: Pod "some-super-long-spark-pod-name-exceeded-length-253-driver" is
invalid: metadata.name: Invalid value:
"some-super-long-spark-pod-name-exceeded-length-253-driver": must be no more
than 253 characters. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]