Skip to content

Commit bd55d49

Browse files
authored
Clarify requirements for label value syntax
1 parent 960f924 commit bd55d49

File tree

1 file changed

+4
-1
lines changed
  • content/en/docs/concepts/overview/working-with-objects

1 file changed

+4
-1
lines changed

content/en/docs/concepts/overview/working-with-objects/labels.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ If the prefix is omitted, the label Key is presumed to be private to the user. A
5252

5353
The `kubernetes.io/` and `k8s.io/` prefixes are reserved for Kubernetes core components.
5454

55-
Valid label values must be 63 characters or less and must be empty or begin and end with an alphanumeric character (`[a-z0-9A-Z]`) with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
55+
Valid label value:
56+
* must be 63 characters or less (cannot be empty),
57+
* must begin and end with an alphanumeric character (`[a-z0-9A-Z]`),
58+
* could contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
5659

5760
For example, here's the configuration file for a Pod that has two labels `environment: production` and `app: nginx` :
5861

0 commit comments

Comments
 (0)