Difference between revisions of "Kubernetes taints and tolerations"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 43: | Line 43: | ||
* <code>[[eks_managed_node_groups]]</code> | * <code>[[eks_managed_node_groups]]</code> | ||
* <code>[[eks.amazonaws.com/compute-type=fargate:NoSchedule]]</code> | * <code>[[eks.amazonaws.com/compute-type=fargate:NoSchedule]]</code> | ||
+ | * [[NodeRestriction admission plugin]] | ||
== See also == | == See also == |
Revision as of 06:18, 16 March 2023
Taints allow a node to repel a set of pods, in opposite to Node Affinity
- A taint consists of a key, value, and effect. As an argument here, it is expressed as
key=value:effect
- The effect must be
NoSchedule, PreferNoSchedule or NoExecute.
Contents
Examples
taints: - key: eks.amazonaws.com/compute-type value: fargate effect: NoSchedule
spec: providerID: aws:///us-east-1a/i-085c2fcaaerterq taints: - key: dedicated value: gpuGroup effect: NoSchedule
https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/examples/complete/main.tf
taints = { dedicated = { key = "dedicated" value = "gpuGroup" effect = "NO_SCHEDULE" } }
Activities
Related
tolerations:
- Node affinity
aws_eks_node_group
eks_managed_node_groups
eks.amazonaws.com/compute-type=fargate:NoSchedule
- NodeRestriction admission plugin
See also
Advertising: