mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Adding documentation on using domains and / in taint/label keys; Also clarified both key and value to labels can be 63 characters long
This commit is contained in:
parent
3af06ccf5b
commit
53b3b5b6c5
@ -70,7 +70,8 @@ var (
|
||||
labelLong = templates.LongDesc(i18n.T(`
|
||||
Update the labels on a resource.
|
||||
|
||||
* A label must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to %[1]d characters.
|
||||
* A label key and value must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to %[1]d characters each.
|
||||
* Optionally, the key can begin with a DNS subdomain prefix and a single '/', like example.com/my-app
|
||||
* If --overwrite is true, then existing labels can be overwritten, otherwise attempting to overwrite a label will result in an error.
|
||||
* If --resource-version is specified, then updates will use this resource version, otherwise the existing resource-version will be used.`))
|
||||
|
||||
|
@ -58,6 +58,7 @@ var (
|
||||
|
||||
* A taint consists of a key, value, and effect. As an argument here, it is expressed as key=value:effect.
|
||||
* The key must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to %[1]d characters.
|
||||
* Optionally, the key can begin with a DNS subdomain prefix and a single '/', like example.com/my-app
|
||||
* The value must begin with a letter or number, and may contain letters, numbers, hyphens, dots, and underscores, up to %[2]d characters.
|
||||
* The effect must be NoSchedule, PreferNoSchedule or NoExecute.
|
||||
* Currently taint can only apply to node.`))
|
||||
|
Loading…
Reference in New Issue
Block a user