<@U04S8PLJWMT> with tolerations added can't start ...
# ask-ai
d
@kapa.ai with tolerations added can't start my connections
Copy code
global:
  jobs:
    resources:
      limits:
        cpu: "1"
        memory: "2Gi"
      requests:
        cpu: "0.5"
        memory: "1Gi"
    kube:
      tolerations:
        - key: "airbyte"
          operator: "Equal"
          value: "true"
          effect: "NoSchedule"
      nodeSelector:
        workload-type: "airbyte"
      scheduling:
        check:
          nodeSelectors:
            workload-type: "airbyte"
        discover:
          nodeSelectors:
            workload-type: "airbyte"
        spec:
          nodeSelectors:
            workload-type: "airbyte"
Weird
Copy code
JOB_KUBE_NAMESPACE: ""
  JOB_KUBE_NODE_SELECTORS: workload-type=airbyte
  JOB_KUBE_SERVICEACCOUNT: airbyte-admin
  JOB_KUBE_TOLERATIONS: effect=NoSchedule,key=airbyte,operator=Equal,value=true
k
Based on the information in your configuration and the knowledge sources, there are a few important points to consider regarding tolerations and node selectors in Airbyte on Kubernetes: 1. Tolerations and Node Selectors Not Always Propagated: There have been multiple reports that, in some Airbyte versions (including Helm charts up to at least 1.7.1), tolerations set via Helm values or environment variables are not always correctly propagated to job pods (such as check, spec, and discover jobs). Node selectors are more reliably applied, but tolerations often are not, which can prevent pods from being scheduled on tainted nodes and cause jobs to fail to start. This is a known issue and has been discussed in several GitHub issues and forum posts. For example, users have reported that even with correct environment variables and Helm values, job pods do not get the expected tolerations and thus cannot be scheduled on tainted nodes, leading to failures in starting connections or jobs [Job tolerations are ignored](https://github.com/airbytehq/airbyte/issues/45903), [Node selector and tolerations for job](https://github.com/airbytehq/airbyte/issues/10378). 2. Workarounds and Fixes: - Some users have found that using nightly or newer releases (from version 1.2.0 onwards) resolves the issue, as fixes have been merged to ensure tolerations are correctly propagated to job pods [Orchestrator pod ignores JOB_KUBE_TOLERATIONS for itself](https://github.com/airbytehq/airbyte/issues/28389). - If you are not on a version with the fix, a workaround is to use a Kubernetes admission controller (like Kyverno) to inject the required tolerations into job pods after they are created, but this is not ideal for all environments. 3. Configuration Format: - The format of your tolerations and nodeSelector in the Helm values appears correct and matches the documented approach. However, the actual propagation depends on the Airbyte version and the implementation in the workload-launcher and job pod creation logic. - The environment variables you listed (
JOB_KUBE_TOLERATIONS
,
JOB_KUBE_NODE_SELECTORS
, etc.) are also correct, but again, their effect depends on the Airbyte version. Summary/Recommendation: If your connections cannot start and you see that job pods are not scheduled due to missing tolerations, you are likely hitting this known issue. The best course of action is to upgrade to Airbyte 1.2.0 or later, where this bug has been fixed and tolerations should be correctly applied to job pods. If you cannot upgrade, consider using a workaround like Kyverno to inject tolerations, or temporarily remove the taint from your nodes to allow jobs to be scheduled. If you are already on 1.2.0+ and still see this issue, double-check the pod specs with
kubectl describe pod
to confirm whether the tolerations are present. If not, there may be a regression or a misconfiguration, and you should open a new issue with detailed logs and configuration. References: - [Job tolerations are ignored](https://github.com/airbytehq/airbyte/issues/45903) - [Orchestrator pod ignores JOB_KUBE_TOLERATIONS for itself](https://github.com/airbytehq/airbyte/issues/28389) - [Node selector and tolerations for job](https://github.com/airbytehq/airbyte/issues/10378) If you need more specific troubleshooting, please provide your Airbyte version and any relevant pod logs or
kubectl describe
output.