Skip to content

Commit

Permalink
add tolerations and the node selector for Karpenter controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
baixiac committed Feb 1, 2024
1 parent dcc2daa commit 56276b5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/karpenter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ resource "helm_release" "karpenter" {
name = "settings.aws.interruptionQueueName"
value = module.karpenter[0].queue_name
}

set {
name = "tolerations[0].key"
value = "dmz-pod"
}

set {
name = "tolerations[0].value"
value = "false"
}

set {
name = "nodeSelector.role"
value = "dmz-1"
}

}

resource "kubectl_manifest" "karpenter_provisioner" {
Expand Down

0 comments on commit 56276b5

Please sign in to comment.