Our team was reviewing the current Object Names & IDs Documentation, which seems a bit vague. It lists four common naming constraints with Kubernetes (DNS Subdomain, RFC 1123, RFC 1035 and Path Segment Names) but each of these constraints only lists “some” or “most” resource types have these requirements. Then in a note at the bottom it’s mentioned “Some resource types have additional restrictions on their names.”
Great! Which ones?! Is there another source that breaks down the resources and which naming rules they follow? Or a command I can run to output the constraints for a resource type? We would like to enforce some naming convention templates for our manifests and we’re having to adjust them frequently as we discover new naming limitations.
Kubernetes version: 1.25
Cloud being used: Amazon EKS
Installation method: EKS / Terraform
CNI and version:
CRI and version: