Corrections for Inaccurate Descriptions of taint and toleration
- https://github.com/kubernetes/website/blob/main/content/en/docs/reference/glossary/taint.md
- https://github.com/kubernetes/website/blob/main/content/en/docs/reference/glossary/toleration.md
Problem:
- Regarding the explanation of taint, the #45972 issue removed the
core-objecttag, but the phrasecore objectremains in the description, which may cause confusion. - For both taint and toleration, the phrasing
three required properties: key, value, and effectis used. However, for taint, the value property is optional (notrequired). Also, for toleration, we can omit one of the key, value, or effect properties.
Proposed Solution:
- Remove the phrase
core objectfrom the taint description. - Remove the term
requiredfrom the descriptions of both taint and toleration.
FYI:
- https://github.com/kubernetes/website/issues/45972
- https://github.com/kubernetes/website/pull/50399
- https://github.com/kubernetes/website/pull/50419
This issue is currently awaiting triage.
SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.
The triage/accepted label can be added by org members by writing /triage accepted in a comment.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
/language en
I agree with the report, except the proposes solution. Some of the fields are required and we should document that.
@lmktfy cc @yuto-kimura-g I've investigated this issue again. The specifications are as follows I think.
-
Taint
- This is not a core object, but a property.
- Taint mainly uses three fields: key, value, and effect.
- The key and effect fields are required.
-
Toleration
- This is also not a core object.
- Toleration mainly uses four fields: key, operator, value, and effect.
- Although all fields are syntactically optional, they are used in practice by setting a value in one or more fields. I think it is better not to specify the optional/required status of each field in this glossary for simplicity.
These API references are as follows.
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#taint-v1-core
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#toleration-v1-core
Based on these specifications, I suggest the following descriptions.
-
Taint A property applied to a node or node group that uses three fields: key, value, and effect (key and effect are required). Taints prevent the scheduling of Pods onto that node or node group.
Taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node. A node should only schedule a Pod with the matching tolerations for the configured taints.
-
Toleration A property applied to a pod that uses four fields: key, operator, value, and effect. Tolerations enable the scheduling of Pods on nodes or node groups that have matching taints.
Tolerations and taints work together to ensure that pods are not scheduled onto inappropriate nodes. One or more tolerations are applied to a pod. A toleration indicates that the pod is allowed (but not required) to be scheduled on nodes or node groups with matching taints.
There are no changes to the second paragraph. And the API reference also includes the timeAdded and tolerationSeconds fields, but the glossary omits them because they are not core to the main concept.
What is your opinion?
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
should we change to triage/accepted ? it has localization changes already merged and a pending (review in progress) PR.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle rotten - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten