Difference between revisions of "Kubernetes taints and tolerations"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 24: Line 24:
 
       value: [[gpuGroup]]
 
       value: [[gpuGroup]]
 
       effect: NoSchedule
 
       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 ==
 
== Activities ==

Revision as of 08:01, 7 March 2023

Taints allow a node to repel a set of pods, in opposite to Node Affinity



Example

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

See also

Advertising: