Skip to content

Commit f6a316e

Browse files
authored
Merge pull request #27634 from kinvolk/mauricio/fix-label-value-requirements
Fix requirements for label value
2 parents 13b38c4 + 08b8930 commit f6a316e

File tree

1 file changed

+2
-3
lines changed
  • content/en/docs/concepts/overview/working-with-objects

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ If the prefix is omitted, the label Key is presumed to be private to the user. A
5353
The `kubernetes.io/` and `k8s.io/` prefixes are reserved for Kubernetes core components.
5454

5555
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]`),
56+
* must be 63 characters or less (can be empty),
57+
* unless empty, must begin and end with an alphanumeric character (`[a-z0-9A-Z]`),
5858
* could contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
5959

6060
For example, here's the configuration file for a Pod that has two labels `environment: production` and `app: nginx` :
@@ -237,4 +237,3 @@ selector:
237237

238238
One use case for selecting over labels is to constrain the set of nodes onto which a pod can schedule.
239239
See the documentation on [node selection](/docs/concepts/scheduling-eviction/assign-pod-node/) for more information.
240-

0 commit comments

Comments
 (0)