website icon indicating copy to clipboard operation
website copied to clipboard

Corrections for Inaccurate Descriptions of taint and toleration

Open yuto-kimura-g opened this issue 1 year ago • 13 comments

  • 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-object tag, but the phrase core object remains in the description, which may cause confusion.
  • For both taint and toleration, the phrasing three required properties: key, value, and effect is used. However, for taint, the value property is optional (not required). Also, for toleration, we can omit one of the key, value, or effect properties.

Proposed Solution:

  • Remove the phrase core object from the taint description.
  • Remove the term required from 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

yuto-kimura-g avatar Jun 25 '25 17:06 yuto-kimura-g

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.

k8s-ci-robot avatar Jun 25 '25 17:06 k8s-ci-robot

/language en

yuto-kimura-g avatar Jun 27 '25 12:06 yuto-kimura-g

I agree with the report, except the proposes solution. Some of the fields are required and we should document that.

lmktfy avatar Jul 04 '25 15:07 lmktfy

@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?

t-inu avatar Oct 01 '25 06:10 t-inu

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Dec 30 '25 06:12 k8s-triage-robot

/remove-lifecycle stale

t-inu avatar Jan 12 '26 03:01 t-inu

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Apr 12 '26 03:04 k8s-triage-robot

/remove-lifecycle stale

t-inu avatar Apr 13 '26 14:04 t-inu

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Jul 12 '26 14:07 k8s-triage-robot

/remove-lifecycle stale

t-inu avatar Jul 14 '26 00:07 t-inu

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Oct 22 '26 19:10 k8s-triage-robot

should we change to triage/accepted ? it has localization changes already merged and a pending (review in progress) PR.

mblag avatar Oct 28 '26 08:10 mblag

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Nov 27 '26 08:11 k8s-triage-robot