houqp opened a new pull request #13299:
URL: https://github.com/apache/airflow/pull/13299


   K8S pod names follows DNS_SUBDOMAIN naming convention, which can be
   broken down into one or more DNS_LABEL separated by `.`.
   
   While the max length of pod name (DNS_SUBDOMAIN) is 253, each label
   component (DNS_LABEL) of a the name cannot be longer than 63. Pod names
   generated by k8s executor right now only contains one label, which means
   the total effective name length cannot be greater than 63.
   
   This patch concats uuid to pod_id using `.` to generate the pod anem,
   thus extending the max name length to 63 + len(uuid).
   
   Reference: 
https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/design/identifiers.md
   Relevant discussion: 
https://github.com/kubernetes/kubernetes/issues/79351#issuecomment-505228196


----------------------------------------------------------------
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.

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


Reply via email to