-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid value error caused by long k8s pod name (#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: kubernetes/kubernetes#79351 (comment) (cherry picked from commit 862443f)
- Loading branch information
Showing
4 changed files
with
83 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters