<@U04S8PLJWMT> I have Airbyte deployed with helm c...
# ask-ai
s
@kapa.ai I have Airbyte deployed with helm chart v2. How can I modify job-pods manifest?
k
To modify the manifest of job pods (such as adding node selectors, annotations, or resource requests/limits) in Airbyte when deployed with Helm chart v2, you should update the relevant fields in your
values.yaml
file under the
global.jobs.kube
section. For example, to set node selectors and annotations for all job pods, you can use:
Copy code
yaml global:   jobs:     kube:       nodeSelector:         my-label: my-value       annotations:         my-annotation: my-annotation-value
For more granular control (e.g., for specific job types like spec, check, or discover), use the
scheduling
subfields:
Copy code
yaml global:   jobs:     kube:       scheduling:         spec:           nodeSelectors:             my-label: my-value         check:           nodeSelectors:             my-label: my-value         discover:           nodeSelectors:             my-label: my-value
You can also set resource requests/limits for the main container in job pods:
Copy code
yaml global:   workloads:     resources:       mainContainer:         cpu:           request: "500m"           limit: "1"         memory:           request: "1Gi"           limit: "2Gi"
If you need to add environment variables that do not have a direct mapping, you can use the
extraEnv
configuration in the appropriate service section. These settings will be rendered into the job pod manifests by the Helm chart during deployment or upgrade. For more details and a full list of configurable options, refer to the official documentation for Helm chart v2 upgrades: - [Upgrade to Helm chart V2 (Core)](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file) - [Upgrade to Helm chart V2 (Enterprise)](https://docs.airbyte.com/platform/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file) If you need to add custom labels to job pods, note that as of some versions, there have been issues with
jobs.kube.labels
not being applied to dynamically created job pods. Please check your Airbyte and chart version, and consult the [related GitHub issue](https://github.com/airbytehq/airbyte/issues/33867) for the latest status on label support. In summary, most job pod manifest modifications are handled via the
global.jobs.kube
section in your
values.yaml
file in Helm chart v2 deployments. If you need more advanced customizations not covered by these fields, the knowledge sources do not provide explicit support or instructions for direct manifest templating or hooks.
s
@kapa.ai ok, I need to add securityContext, extraVolumeMounts and extraVolumes to job-pods manifest. How can I do this?
k
A message from kapa.ai
To add
securityContext
,
extraVolumeMounts
, and
extraVolumes
to job pods in Airbyte Helm chart v2, you should use the relevant configuration options in your
values.yaml
file. However, based on the provided knowledge sources, there is no explicit documentation or example for setting these fields specifically for job pods (such as sync, check, spec, or discover jobs) in Helm chart v2. The available documentation and example values show how to set these options for core Airbyte components like
server
,
worker
,
webapp
,
workload-launcher
, and
pod-sweeper
using fields like
containerSecurityContext
,
extraVolumeMounts
, and
extraVolumes
under each component's section. For example:
Copy code
yaml worker:   containerSecurityContext:     runAsUser: 1000     runAsGroup: 1000     readOnlyRootFilesystem: false   extraVolumeMounts: []   extraVolumes: []
But for job pods specifically, such as those created dynamically for sync/check/spec/discover, the knowledge sources do not provide a documented way to inject
securityContext
,
extraVolumeMounts
, or
extraVolumes
directly into their manifests. Summary: - You can set
containerSecurityContext
,
extraVolumeMounts
, and
extraVolumes
for main Airbyte services (like
worker
,
server
, etc.) in
values.yaml
. - There is no documented method in the provided sources to set these fields for dynamically created job pods in Helm chart v2. - If you need this feature, you may need to check for updates in the official documentation or open a feature request with the Airbyte team. References: - [Example configuration for core components](https://github.com/airbytehq/airbyte/issues/49843) - [Helm chart v2 upgrade documentation](https://docs.airbyte.com/platform/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file) If you need further customization for job pods, the knowledge sources do not contain enough information to provide a solution.