-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated node roles in docs #49360
base: main
Are you sure you want to change the base?
Updated node roles in docs #49360
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Let's make sure to document the node-role.kubernetes.io/*
node label too.
@@ -140,6 +140,8 @@ When you want to create Node objects manually, set the kubelet flag `--register- | |||
You can modify Node objects regardless of the setting of `--register-node`. | |||
For example, you can set labels on an existing Node or mark it unschedulable. | |||
|
|||
You can set optional node role for nodes by adding `node-role.kubernetes.io/<role>=` label to the node where characters of `<role>` are limited by the [syntax](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules of labels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this look right?
You can set optional node role for nodes by adding `node-role.kubernetes.io/<role>=` label to the node where characters of `<role>` are limited by the [syntax](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules of labels. | |
You can set optional node role(s) for nodes by adding one or more `node-role.kubernetes.io/<role>: <role>` labels to the node | |
where the characters of `<role>` are limited by the | |
[syntax](/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for labels. | |
Kubernetes ignores the label value for node roles; by convention, you set it to the same string you used | |
for the node role in the label key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We ought to add an entry for node-role.kubernetes.io/*
(as well as the specific control plane role).
Fixes: #48803