Skip to content

Commit 9c3479b

Browse files
authored
Merge pull request #34260 from Rishit-dagli/Rishit-dagli-defaultTolerations
Register and document scheduler.alpha.kubernetes.io/defaultTolerations annotation
2 parents d75f302 + 8cc48b8 commit 9c3479b

File tree

1 file changed

+8
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+8
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,14 @@ The presence of this annotation on a Job indicates that the control plane is
502502
[tracking the Job status using finalizers](/docs/concepts/workloads/controllers/job/#job-tracking-with-finalizers).
503503
You should **not** manually add or remove this annotation.
504504

505+
### scheduler.alpha.kubernetes.io/defaultTolerations {#scheduleralphakubernetesio-defaulttolerations}
506+
507+
Example: `scheduler.alpha.kubernetes.io/defaultTolerations: '[{"operator": "Equal", "value": "value1", "effect": "NoSchedule", "key": "dedicated-node"}]'`
508+
509+
Used on: Namespace
510+
511+
This annotation requires the [PodTolerationRestriction](/docs/reference/access-authn-authz/admission-controllers/#podtolerationrestriction) admission controller to be enabled. This annotation key allows assigning tolerations to a namespace and any new pods created in this namespace would get these tolerations added.
512+
505513
### scheduler.alpha.kubernetes.io/preferAvoidPods (deprecated) {#scheduleralphakubernetesio-preferavoidpods}
506514

507515
Used on: Nodes

0 commit comments

Comments
 (0)