diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e5b771a..525b83f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support to get AWS credentials via assume role - Add support to auto-create ALBs on scope create - Fix race condition on IAM role creation when multiple scopes are created concurrently +- Add nodeSelector support for scheduled task scopes ## [1.12.0] - 2026-06-08 - Fix: do not inject file parameter as env vars diff --git a/scheduled_task/deployment/templates/deployment.yaml.tpl b/scheduled_task/deployment/templates/deployment.yaml.tpl index a1d9f1f1..5605c87d 100644 --- a/scheduled_task/deployment/templates/deployment.yaml.tpl +++ b/scheduled_task/deployment/templates/deployment.yaml.tpl @@ -124,6 +124,11 @@ spec: tolerations: {{ data.ToYAML $tolerations | indent 10 }} {{- end }} + {{- $nodeSelector := index $deployment "nodeselector" }} + {{- if $nodeSelector }} + nodeSelector: +{{ data.ToYAML $nodeSelector | indent 10 }} + {{- end }} {{- end }} {{- if .pull_secrets.ENABLED }} imagePullSecrets: