Hi <@U04S8PLJWMT> how do i set node selector label...
# ask-ai
i
Hi @kapa.ai how do i set node selector labels for replication and other job related pods dynamically being created in airbyte ?
k
To set node selector labels for replication and other job-related pods that are dynamically created in Airbyte, you should use the relevant environment variables or Helm values to configure node selectors for these jobs. ### Using Environment Variables You can set the following environment variables (for example, in your
values.yaml
or as extra environment variables in your deployment):
Copy code
yaml extraEnv:   - name: JOB_KUBE_NODE_SELECTORS     value: key1=value1,key2=value2   - name: SPEC_JOB_KUBE_NODE_SELECTORS     value: key1=value1,key2=value2   - name: CHECK_JOB_KUBE_NODE_SELECTORS     value: key1=value1,key2=value2   - name: DISCOVER_JOB_KUBE_NODE_SELECTORS     value: key1=value1,key2=value2
These variables allow you to specify node selectors for all job pods (
JOB_KUBE_NODE_SELECTORS
) or for specific job types (spec, check, discover). Each key-value pair is separated by a comma. For example:
type=jobs,env=prod
[Configuring Airbyte - Jobs-specific](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-airbyte#jobs-specific). ### Using Helm Chart Values If you are deploying Airbyte using Helm, you can set node selectors for job pods in your `values.yaml`:
Copy code
yaml global:   jobs:     kube:       nodeSelector:         type: jobs       scheduling:         check:           nodeSelectors:             type: jobs         discover:           nodeSelectors:             type: jobs         spec:           nodeSelectors:             type: jobs
This configuration ensures that all dynamically created job pods (including replication, spec, check, and discover jobs) are scheduled on nodes with the label
type=jobs
[Scaling Airbyte - Multiple Node Groups](https://docs.airbyte.com/platform/1.8/enterprise-setup/scaling-airbyte#multiple-node-groups). ### Important Note If you update these values after Airbyte is already running, you may need to manually restart the
airbyte-workload-launcher
deployment for the changes to take effect. This is because the configMap is created at runtime, and changes are not automatically applied to already running deployments. After a manual restart, the new node selector settings will be applied to newly created job pods [GitHub Issue: Node selector and tolerations for job](https://github.com/airbytehq/airbyte/issues/10378). --- Summary: Set node selectors for job pods using the
JOB_KUBE_NODE_SELECTORS
environment variable or the
global.jobs.kube.nodeSelector
Helm value. For changes to take effect, restart the
airbyte-workload-launcher
if Airbyte is already running.