In Kubernetes docs here I can see that the pod name follows a valid "DNS subdomain name" which means 253 char limit but here in this article here they have mentioned that you should try to keep deployment name below 47 char as pod name limit to 63 char. Also, I tried creating a pod with a deployment name of more than 63 chars but the pod name got truncated to 63 chars.
So, what is the correct char limit for the pod name?
CodePudding user response:
A domain name is a series of labels with max length of 255; where each label with max length of 63 bytes. The K8s document is referring to the label. See here for the RFC standard.