Skip to content

Commit eeffa0d

Browse files
authored
Configure startupTaints for karpenter NodePools (#1506)
* Configure startupTaints for karpenter NodePools * Improve changelog
1 parent c6caa7d commit eeffa0d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Switch to HelmReleases to install `karpenter` and `karpenter-crossplane-resources` charts.
1515
- Bump flux `HelmReleases` api version to v2.
1616
- Reduce heartbeat timeout for ASG lifecycle hooks to from 30 minutes to 3 minutes since aws-node-termination-handler-app (NTH) can now send heartbeats
17+
- Configure the following `startupTaints` to help `karpenter` ignore pending `Pods` due to these taints that will be removed after the node starts, avoiding unnecessary instance provisioning:
18+
- `node.cluster.x-k8s.io/uninitialized:NoSchedule`
19+
- `node.cilium.io/agent-not-ready:NoSchedule`
20+
- `ebs.csi.aws.com/agent-not-ready:NoExecute`
1721

1822
### Removed
1923

helm/cluster-aws/templates/_karpenter_machine_pools.tpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,15 @@ spec:
136136
- linux
137137
{{- end }}
138138
startupTaints:
139-
- effect: NoExecute
139+
- effect: NoSchedule
140+
key: node.cluster.x-k8s.io/uninitialized
141+
value: "true"
142+
- effect: NoSchedule
140143
key: node.cilium.io/agent-not-ready
141144
value: "true"
145+
- effect: NoExecute
146+
key: ebs.csi.aws.com/agent-not-ready
147+
value: "true"
142148
{{- with $value.customNodeTaints }}
143149
taints:
144150
{{- range . }}

0 commit comments

Comments
 (0)