Names the API server will accept
The Kubernetes Resource Name Generator produces object names that satisfy the validation Kubernetes applies on kubectl apply. Most resources require an RFC 1123 DNS label — lowercase, hyphen-separated, alphanumeric at both ends, 63 characters or fewer. This tool builds names that pass that rule (or the longer subdomain form) so your example manifests never get rejected.
How it works
The generator draws from curated word lists — adjectives, nouns and short technical terms — and joins them with hyphens, appending a kind-appropriate suffix (for example -svc for a service or -cm for a configmap). It then lowercases everything, strips any character outside [a-z0-9-], collapses repeated hyphens, and trims leading and trailing hyphens so the first and last characters are always alphanumeric.
Finally each candidate is matched against the exact regular expression Kubernetes uses. For a DNS-1123 label that is [a-z0-9]([-a-z0-9]*[a-z0-9])? capped at 63 characters; for a subdomain it is the dot-joined form of that label capped at 253 characters. Only names that pass are emitted, so every result is guaranteed valid.
Tips and example
- A pod name comes out like
calm-otter-pod; a service likebright-cache-svc; a namespace liketeam-payments. - Keep names short and descriptive — 63 characters is the hard limit for labels, and very long names are awkward in logs and selectors.
- Use the subdomain rule only for resources that actually allow dots, such as certain custom resources; pods and services need the label form.
- All names are synthetic placeholders for examples and tests — never assume one maps to a real workload.