<@U04S8PLJWMT> in airbyte 1.5 version helm chart f...
# ask-ai
a
@kapa.ai in airbyte 1.5 version helm chart for open source, in helm which helm chart is creating job pods for source connection
k
Short answer: the job pods (for “Test the source”, Discover, Spec, and Sync) are not defined as static Kubernetes objects in any single Helm subchart; they are created dynamically at runtime by the Airbyte workload components. - In Helm chart V1 (around Airbyte 1.5.x), the workload-launcher/worker orchestrate creating these ephemeral job pods using settings passed via env vars like JOB_KUBE_NODE_SELECTORS, tolerations, etc. You configure how those pods should be scheduled via the Helm values under jobs.kube (selectors, tolerations, annotations), but the actual job pods are launched dynamically, not from a fixed Helm template. [[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Multiple node groups](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#multiple-node-groups)] - Evidence from user reports shows that the “check” (Test the Source) pod is instantiated at runtime with labels like job_type: check, and uses the connector-sidecar, confirming it’s created dynamically by the workload/orchestration services rather than a Helm-rendered manifest. [[HTTP 500 check pod manifest](https://github.com/airbytehq/airbyte/issues/48809)] So, there isn’t a specific Helm template (or subchart) that “creates” the source-connection job pods. Helm deploys the control plane components (server, worker, workload-launcher/workload-api), and those components create the job pods on demand using the scheduling/configuration you set in values.yaml. You can influence those pods via jobs.kube.* settings in your Helm values, but the pods themselves are created at runtime by Airbyte’s workload launcher/worker. [[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Multiple node groups](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#multiple-node-groups); [Check pod example](https://github.com/airbytehq/airbyte/issues/48809)]
a
@kapa.ai how to update the nodeSelector so it is updated in every helm configuration
k
A message from kapa.ai
To update nodeSelector for all Airbyte job pods via Helm, set it once at the global jobs.kube level in your values.yaml. In Helm chart V2, this central setting is applied to all job types; you can still override per job if needed. Example (Helm chart V2):
Copy code
yaml global:   jobs:     kube:       nodeSelector:         type: jobs       # optional: tolerations/annotations, imagePull*, etc.       # tolerations:       #   - key: "workload"       #     operator: "Equal"       #     value: "airbyte-jobs"       #     effect: "NoSchedule"    # optional per-job overrides:   # jobs:   #   kube:   #     scheduling:   #       spec:   #         nodeSelectors:   #           type: jobs   #       check:   #         nodeSelectors:   #           type: jobs   #       discover:   #         nodeSelectors:   #           type: jobs
- Global default for all jobs: global.jobs.kube.nodeSelector. [[Community V2 mapping](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Next Community V2 mapping](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)] - Per-job overrides (Spec/Check/Discover): global.jobs.kube.scheduling.<job>.nodeSelectors. [[Community V2 mapping](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Enterprise V2 mapping](https://docs.airbyte.com/platform/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file)] If you are upgrading from Helm chart V1 where node selectors were set via extraEnv (e.g., JOB_KUBE_NODE_SELECTORS, SPEC_JOB_KUBE_NODE_SELECTORS), move them to the V2 keys above instead of extraEnv. [[Convert extraEnv](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Next convert extraEnv](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)] Notes: - The orchestrator field name changed from orchestrator to containerOrchestrator in V2; nodeSelector for jobs lives under global.jobs.kube, not under the component. [[Key renames](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)] - For older Airbyte (1.5, chart V1), you’d set JOB_KUBE_NODE_SELECTORS (and SPEC_/CHECK_/DISCOVER_ variants) via extraEnv on workload-launcher; in V2 those map to the keys shown above. [[Jobs-specific envs](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#jobs-specific); [V1→V2 mapping](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)]
a
@kapa.ai , defined node selector like global.jobs.kube.nodeSelector.t-platform=data global.jobs.kube.nodeSelector.t-environment=test global.jobs.kube.nodeSelector.t-domain=dev but the pod is going on different node. what to add?
k
A message from kapa.ai
If you’re on the Helm chart V2, setting global.jobs.kube.nodeSelector should apply to all dynamically created job pods. If pods still land on other nodes, check these common causes and fixes: 1) Ensure you’re using the V2 keys (not extraEnv) - Correct V2 placement: - global.jobs.kube.nodeSelector: applies to all jobs by default. - Optional per‑job overrides under global.jobs.kube.scheduling.{spec|check|discover}.nodeSelectors. If you set per‑job overrides, they will take precedence over the global default. [[Upgrade to V2](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Multiple node groups](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#multiple-node-groups)] Example:
Copy code
yaml global:   jobs:     kube:       nodeSelector:         t-platform: "data"         t-environment: "test"         t-domain: "dev"       # optional per-job explicit overrides if needed:       scheduling:         check:           nodeSelectors:             t-platform: "data"             t-environment: "test"             t-domain: "dev"         discover:           nodeSelectors:             t-platform: "data"             t-environment: "test"             t-domain: "dev"         spec:           nodeSelectors:             t-platform: "data"             t-environment: "test"             t-domain: "dev"
This mirrors the documented V2 structure and ensures Spec/Check/Discover also get the selectors. [[Upgrade to V2](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)] 2) Confirm there’s no older V1 env overriding behavior If you previously set JOB_KUBE_NODE_SELECTORS or SPEC_/CHECK_/DISCOVER_… via extraEnv on workload-launcher, remove them when using V2 keys to avoid conflicts. [[Upgrade to V2](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)] 3) Taints and tolerations If the target nodes are tainted, add matching tolerations so the pods can be scheduled there. Without tolerations, Kubernetes will ignore your nodeSelector and keep pods off tainted nodes. Set under global.jobs.kube.tolerations. [[Configuring jobs](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#jobs); [Multiple node groups](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#multiple-node-groups)] Example:
Copy code
yaml global:   jobs:     kube:       nodeSelector:         t-platform: "data"         t-environment: "test"         t-domain: "dev"       tolerations:         - key: "workload"           operator: "Equal"           value: "airbyte-jobs"           effect: "NoSchedule"
4) Version-specific caveats Older versions had gaps where some job types (e.g., check/discover/normalization) didn’t inherit the fallback and needed explicit per‑job settings. If you’re on an affected version, adding the per‑job nodeSelectors as shown above is the safest path. [[Forum note on fallbacks](https://discuss.airbyte.io/t/4533); [Issue on fallbacks](https://github.com/airbytehq/airbyte/issues/27133)] 5) Verify at runtime After helm upgrade, inspect a newly launched job pod (kubectl get pod … -o yaml) to confirm spec.nodeSelector and tolerations are present. If not, re-check the values key paths match V2 exactly. [[Upgrade to V2](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)] In short: keep the selectors under global.jobs.kube.nodeSelector, add matching tolerations if nodes are tainted, and (on some versions) explicitly set per‑job nodeSelectors under global.jobs.kube.scheduling for spec/check/discover jobs. [[Upgrade to V2](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Multiple node groups](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#multiple-node-groups); [Forum fallback](https://discuss.airbyte.io/t/4533)]
a
where does it takes option to pick the nodeselector for job pod? @kapa.ai
k
A message from kapa.ai
Short answer: from your Helm values, propagated to the runtime job launcher. - On Helm chart V2, the default node selector for all job pods is taken from values.yaml at global.jobs.kube.nodeSelector. Per‑job overrides (Spec/Check/Discover) are taken from global.jobs.kube.scheduling.{spec|check|discover}.nodeSelectors. These values are read by the Airbyte services that create job pods (workload launcher/orchestrator) and applied when the pods are spawned. [[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Multiple node groups](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#multiple-node-groups)] - On older setups (chart V1), the options were passed as environment variables on workload-launcher: JOB_KUBE_NODE_SELECTORS for the default and SPEC_/CHECK_/DISCOVER_JOB_KUBE_NODE_SELECTORS for per‑job overrides. In V2 these map directly to the keys above. [[Update values.yaml](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Jobs-specific envs](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#jobs-specific)] Notes: - Some historical versions required explicit per‑job keys because the fallback didn’t apply to all job types; normalization was also called out as not inheriting selectors in older releases. If you hit this, set the per‑job nodeSelectors explicitly. [[Forum note](https://discuss.airbyte.io/t/4533); [Bug report](https://github.com/airbytehq/airbyte/issues/27133)]
a
@kapa.ai, which airbyte api to run to refresh the source schema with new changes in the column while keeping the old offset intact
k
A message from kapa.ai
To refresh the source schema and detect new column changes via the Airbyte API (while keeping the old offset and not resetting the sync), you should use the Discover Schema API endpoint:
Copy code
POST /v1/sources/discover_schema
This endpoint will trigger schema detection for your source. After running this, you can update the connection to use the new schema. This process does not reset the sync offset, so your incremental syncs will continue from the previous state, and only the schema will be updated to include new columns. References: - [API documentation for discover_schema](https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#post-/v1/sources/discover_schema) - Community confirmation that this endpoint is used for programmatically refreshing the schema without resetting data or offsets [Trigger connector schema detection](https://discuss.airbyte.io/t/1952) - Additional discussion and confirmation that using this endpoint refreshes the schema and does not require a full reset: [Github Issue: Refresh the source schema and save the stream changes from the Airbyte API](https://github.com/airbytehq/airbyte/issues/26399) Note: If your connection is set to "manually approve" schema changes, you may need to approve the detected changes in the UI or via the API before they are applied to the next sync. The offset will remain intact unless you explicitly reset the connection.