Resource name constraints (5) (#19122)

xref: #17969, #19099, #18746
This commit is contained in:
Qiming Teng
2020-03-16 12:52:36 +08:00
committed by GitHub
parent 01e7453cdf
commit e0a03c0ebd
6 changed files with 24 additions and 2 deletions
@@ -29,6 +29,9 @@ Here is the manifest for the PodPreset:
{{< codenew file="podpreset/preset.yaml" >}}
The name of a PodPreset object must be a valid
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
In the manifest, you can see that the preset has an environment variable definition called `DB_PORT`
and a volume mount definition called `cache-volume` which is mounted under `/cache`. The {{< glossary_tooltip text="selector" term_id="selector" >}} specifies that
the preset will act upon any Pod that is labeled `role:frontend`.