Skip to content

Commit 8b4c98b

Browse files
authored
feat(k8s): Add taint toleration for the replicator statefulset (#342)
1 parent d021b20 commit 8b4c98b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

etl-api/src/k8s_client.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,19 @@ impl K8sClient for HttpK8sClient {
360360
"emptyDir": {}
361361
}
362362
],
363+
// Allow scheduling onto nodes tainted with `nodeType=workloads`.
364+
"tolerations": [
365+
{
366+
"key": "nodeType",
367+
"operator": "Equal",
368+
"value": "workloads",
369+
"effect": "NoSchedule"
370+
}
371+
],
372+
// Pin pods to nodes labeled with `nodeType=workloads`.
373+
"nodeSelector": {
374+
"nodeType": "workloads"
375+
},
363376
// We want to wait at most 60 seconds before K8S sends a `SIGKILL` to the containers.
364377
"terminationGracePeriodSeconds": 60,
365378
"initContainers": [

0 commit comments

Comments
 (0)