when migrating to helm charts v2, what does the "c...
# ask-ai
l
when migrating to helm charts v2, what does the "cloudSqlProxy" v2 chart do
k
When migrating to Airbyte Helm chart V2, the
cloudSqlProxy
setting in the chart is used to enable or configure the use of Google's Cloud SQL Proxy. This is particularly relevant if you are using Google Cloud SQL as your external database for Airbyte. In the V2 chart, the equivalent environment variable for enabling Cloud SQL Proxy is
USE_CLOUD_SQL_PROXY
, which maps to
global.cloudSqlProxy.enabled
in your
values.yaml
file. Setting this value to
true
will enable the Cloud SQL Proxy integration, allowing Airbyte to connect securely to a Google Cloud SQL instance without exposing the database directly to the internet. This is especially useful for managing authentication and secure connections in Kubernetes environments. Here is the relevant mapping from the documentation:
Copy code
USE_CLOUD_SQL_PROXY → global.cloudSqlProxy.enabled
You would set this in your
values.yaml
file as follows:
Copy code
yaml global:   cloudSqlProxy:     enabled: true
This configuration ensures that Airbyte can use the Cloud SQL Proxy for database connections, aligning with best practices for secure database access in GCP environments. For more details on all environment variable mappings in Helm chart V2, see the documentation table on updating your
values.yaml
file [here](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). If you need to further customize the Cloud SQL Proxy deployment (such as specifying service accounts or additional flags), the documentation does not provide those details explicitly, so you may need to refer to the chart's values schema or reach out to Airbyte support for advanced configurations.
l
@kapa.ai where is the "podSweeper" configuration?
k
A message from kapa.ai
The "podSweeper" configuration is found in the Helm chart values for Airbyte, specifically under the section for the pod-sweeper component. In Helm chart V1, you can configure the pod-sweeper in your
values.yaml
file using the
pod-sweeper
key. Here is an example of how it appears:
Copy code
yaml pod-sweeper:   enabled: true   image:     repository: bitnami/kubectl     pullPolicy: IfNotPresent     tag: 1.28.9   # ... other configuration options ...
This section allows you to set options such as the image repository, pull policy, tag, security context, probes, and more for the pod-sweeper deployment. The pod-sweeper is responsible for cleaning up completed or failed pods in your Airbyte Kubernetes deployment [see example and details](https://github.com/airbytehq/airbyte/issues/49843). Note: In recent Airbyte Helm chart versions (v1.8.x and later), the pod-sweeper chart is no longer included or published as part of the main Airbyte Helm chart, and there have been discussions about its future and integration with other components. If you are using Helm chart V2, the pod-sweeper configuration may not be present, and you may need to deploy it separately or use alternative cleanup strategies [see discussion](https://github.com/airbytehq/airbyte/issues/64560).
l
@kapa.ai upgrading to the new helm chart the temporal deployment cant find the database I see the connection information and it's trying to pull from "airbyte-airbyte-env", which seems not to indicate the "temporal" database name
k
A message from kapa.ai
When upgrading to the new Airbyte Helm chart, it is common to encounter issues where the Temporal deployment cannot find or connect to the correct database. Based on the knowledge sources, here are some key points and troubleshooting steps: 1. Database Name Configuration for Temporal By default, the Temporal deployment expects databases named
temporal
and
temporal_visibility
. If you want to use custom database names or ensure the correct names are used, you must explicitly set them via environment variables in the Temporal section of your
values.yaml
file. For example:
Copy code
yaml    temporal:      extraEnv:        - name: DBNAME          value: "temporal"        - name: VISIBILITY_DBNAME          value: "temporal_visibility"        - name: SKIP_DB_CREATE          value: "true"
This ensures Temporal connects to the correct databases and does not attempt to create them if they already exist. This approach is confirmed to work for users who manually create the databases and want to avoid schema setup issues [see discussion](https://github.com/airbytehq/airbyte/issues/11157). 2. ConfigMap and Environment Variable Injection The Helm chart generates a ConfigMap (e.g.,
airbyte-airbyte-env
) with environment variables, but it may not automatically inject all required variables into the Temporal deployment. You may need to use the
extraEnv
field to manually inject the correct database names and connection parameters [see example](https://github.com/airbytehq/airbyte/issues/43328). 3. Common Pitfall: DATABASE_URL Ignored by Temporal Setting
DATABASE_URL
as an environment variable is not sufficient for Temporal; it does not use this variable for its own database connections. Instead, you must use the specific environment variables as shown above [see issue](https://github.com/airbytehq/airbyte/issues/32980). 4. Check for Secret and ConfigMap References If the Temporal deployment is referencing
airbyte-airbyte-env
but not finding the correct database name, ensure that your
values.yaml
is correctly mapping the database credentials and names, and that any referenced secrets or config maps contain the expected values. Summary: To resolve the issue, explicitly set the
DBNAME
and
VISIBILITY_DBNAME
environment variables for the Temporal deployment in your
values.yaml
using the
extraEnv
field. Do not rely on
DATABASE_URL
for Temporal. This should direct Temporal to the correct databases and resolve the connection issue after upgrading to the new Helm chart. If you continue to have issues, double-check that your secrets and config maps are correctly populated and referenced in your deployment configuration [see related discussions](https://github.com/airbytehq/airbyte/issues/43328) [and](https://github.com/airbytehq/airbyte/issues/11157).
l
@kapa.ai in the v2 chart I setup the global.database.type as external and global.database.name as airbyte (pointing to my cloud-sql-proxy service) is this why its trying to connect to the airbyte database?
k
A message from kapa.ai
Yes, setting
global.database.type
to
external
and
global.database.name
(or
global.database.database
in some chart versions) to
airbyte
in your
values.yaml
will configure Airbyte to use an external database named
airbyte
for its main application database. This is why the system is trying to connect to the
airbyte
database through your Cloud SQL Proxy service. However, Temporal (the workflow engine used by Airbyte) requires its own databases, typically named
temporal
and
temporal_visibility
. By default, unless you explicitly configure the Temporal deployment to use different database names, it will look for these default databases. The main Airbyte database (
airbyte
) is separate from the Temporal databases. If you want Temporal to use different database names, you need to set the appropriate environment variables (
DBNAME
and
VISIBILITY_DBNAME
) in the Temporal deployment, as described in the knowledge sources. Otherwise, it will continue to look for the default
temporal
and
temporal_visibility
databases, not the
airbyte
database [see discussion](https://github.com/airbytehq/airbyte/issues/43328) [and](https://github.com/airbytehq/airbyte/issues/11157). So, your current configuration explains why Airbyte is connecting to the
airbyte
database, but you may need additional configuration for Temporal to ensure it connects to the correct databases.
l
@kapa.ai 2025-11-10T052345.331Z ERROR sql handle: unable to refresh database connection pool {"error": "pq: SSL is not enabled on the server", "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/common/persistence/sql/sqlplugin/db_handle.go:128"} I think my db allows ssl connections (its a cloudsql instance) how to check
k
A message from kapa.ai
The error message
pq: SSL is not enabled on the server
indicates that the Temporal component is attempting to connect to your database with SSL, but the database is not accepting SSL connections. For Google Cloud SQL (Postgres): - By default, Cloud SQL for PostgreSQL requires SSL connections unless you have explicitly disabled this requirement in your instance settings. - To verify if SSL is enabled or required, you can check your Cloud SQL instance settings in the Google Cloud Console under the "Connections" tab. There, you will see SSL configuration options and whether client certificates are required. Troubleshooting Steps: 1. Check Cloud SQL SSL Settings: - Go to your Cloud SQL instance in the Google Cloud Console. - Under "Connections" > "SSL", verify if SSL connections are required and if client/server certificates are configured. 2. Test Connection Manually: - Try connecting to your Cloud SQL instance using a tool like
psql
with and without SSL to confirm the server's behavior. 3. Airbyte/Temporal Configuration: - If your Cloud SQL instance requires SSL, ensure that the Temporal deployment is configured to use SSL. In the Airbyte Helm chart, when
global.database.type
is set to
external
, SSL is assumed and the following environment variables are set for Temporal: -
POSTGRES_TLS_ENABLED=true
-
SQL_TLS_ENABLED=true
- If your Cloud SQL instance does not require SSL, you may need to override these settings, as the chart assumes SSL for external databases by default. There are open issues about this behavior and requests for more flexible configuration in the Helm chart [see discussion](https://github.com/airbytehq/airbyte/issues/48504) [and](https://github.com/airbytehq/airbyte/issues/43328). Summary: - Double-check your Cloud SQL instance's SSL settings in the Google Cloud Console. - If SSL is required, ensure your Airbyte/Temporal deployment is configured to use SSL. - If SSL is not required, you may need to override the default Helm chart behavior, as it assumes SSL for external databases. If you need to disable SSL for Temporal, the current Helm chart may not provide a straightforward way to do this, and you may need to customize your deployment or follow ongoing issues for updates [see discussion](https://github.com/airbytehq/airbyte/issues/48504).
l
@kapa.ai now another error Warning FailedMount 21s (x8 over 85s) kubelet MountVolume.SetUp failed for volume "gcs-log-creds-volume" : references non-existent secret key: GOOGLE_APPLICATION_CREDENTIALS_JSON
k
A message from kapa.ai
The error message:
Copy code
MountVolume.SetUp failed for volume "gcs-log-creds-volume" : references non-existent secret key: GOOGLE_APPLICATION_CREDENTIALS_JSON
means that your Kubernetes deployment is trying to mount a secret key named
GOOGLE_APPLICATION_CREDENTIALS_JSON
from a Kubernetes Secret, but that key does not exist in the referenced secret. What’s happening: - In recent Airbyte Helm chart versions (V2), the GCS credentials are expected to be provided as a Kubernetes Secret, and the key name for the GCS credentials file is typically
gcp.json
, not
GOOGLE_APPLICATION_CREDENTIALS_JSON
. - There is confusion and some inconsistency in the documentation and Helm chart templates about which key is used, and several users have reported similar issues when upgrading or configuring GCS storage ([see related issues](https://github.com/airbytehq/airbyte/issues/68178), [discussion](https://github.com/airbytehq/airbyte/issues/65153)). How to fix: 1. Check your Secret: Ensure that the secret you are referencing (e.g.,
airbyte-gcs-log-creds
or whatever your
storage.secretName
is set to) contains a key named
gcp.json
with your GCS credentials JSON as its value. Example:
Copy code
yaml    apiVersion: v1    kind: Secret    metadata:      name: airbyte-gcs-log-creds    type: Opaque    stringData:      gcp.json: |-        {          "type": "service_account",          ...        }
2. Check your values.yaml: In Helm chart V2, you may need to set:
Copy code
yaml    global:      storage:        type: gcs        secretName: airbyte-gcs-log-creds        gcs:          credentialsJsonSecretKey: gcp.json
(Note: The key
credentialsJsonSecretKey
is used in V2, while in V1 it was
credentialsPath
or
credentialsJsonPath
 — see [user migration notes](https://github.com/airbytehq/airbyte/issues/68178).) 3. Do not use
GOOGLE_APPLICATION_CREDENTIALS_JSON
as the key
unless you have specifically configured your deployment to expect that key. The default and recommended key is
gcp.json
. Summary: Update your Kubernetes Secret to include a key named
gcp.json
with your GCS credentials, and ensure your Helm values reference this key. This should resolve the
non-existent secret key: GOOGLE_APPLICATION_CREDENTIALS_JSON
error. If you are still seeing the error after making these changes, double-check that the secret name and key match exactly what your Helm values and Airbyte deployment expect ([see user experiences and workarounds](https://github.com/airbytehq/airbyte/issues/68178), [discussion](https://github.com/airbytehq/airbyte/issues/65153)).
l
the secret exists this is the config storage: type: gcs secretName: ab-storage-v3 bucket: activityPayload: bucket-name log: bucket-name state: bucket-name workloadOutput: bucket-name gcs: projectId: my-project credentialsJsonPath: /secrets/gcs-log-creds/gcp.json i cant see credentialsJsonSecretKey on the reference yaml...
@kapa.ai the secret exists this is the config storage: type: gcs secretName: ab-storage-v3 bucket: activityPayload: bucket-name log: bucket-name state: bucket-name workloadOutput: bucket-name gcs: projectId: my-project credentialsJsonPath: /secrets/gcs-log-creds/gcp.json i cant see credentialsJsonSecretKey on the reference v2 yaml
k
A message from kapa.ai
You're correct—according to the official Airbyte documentation for Helm chart V2, the
credentialsJsonSecretKey
field is not listed in the standard
values.yaml
reference for configuring GCS storage. The documented and supported fields for GCS in V2 are:
Copy code
yaml global:   storage:     type: gcs     secretName: <your-secret>     bucket:       log: <bucket>       state: <bucket>       workloadOutput: <bucket>       activityPayload: <bucket>     gcs:       projectId: <project-id>       credentialsJson: <base64-encoded>       credentialsJsonPath: /secrets/gcs-log-creds/gcp.json
-
credentialsJson
is for directly providing the base64-encoded credentials in the values file (not recommended for production). -
credentialsJsonPath
is for specifying the mount path to the credentials file inside the pod, which should match the key in your Kubernetes secret. Key points from the documentation: - The secret should contain a key (e.g.,
gcp.json
) with your GCS credentials. - The
credentialsJsonPath
should point to the file path where this secret will be mounted in the pod, e.g.,
/secrets/gcs-log-creds/gcp.json
 ([see docs](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values)). Troubleshooting: - If you see an error about a missing
GOOGLE_APPLICATION_CREDENTIALS_JSON
key, but your secret only has
gcp.json
, it may be due to a mismatch between what the chart expects and what is provided. - The documentation and several GitHub issues confirm that the correct key in the secret should be
gcp.json
, and the path in
credentialsJsonPath
should match where it is mounted in the pod ([see issue](https://github.com/airbytehq/airbyte/issues/68178), [see docs](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values)). Summary: - You do not need to use
credentialsJsonSecretKey
in Helm chart V2. - Ensure your secret contains a key named
gcp.json
. - Set
credentialsJsonPath
to the path where this file will be mounted in the pod. - If you are still seeing errors, double-check that the secret name and key match exactly, and that the pod is mounting the secret at the expected path. If the error persists, it may be due to a chart bug or a mismatch in how the secret is referenced, as discussed in several GitHub issues. The knowledge sources do not provide a different or undocumented field for this configuration in V2.
l
@kapa.ai I can confirm this indeed works... credentialsJsonSecretKey
k
A message from kapa.ai
Thank you for your feedback and confirmation. Based on the knowledge sources, there is evidence from user reports and GitHub issues that in Helm chart V2, the field
credentialsJsonSecretKey
is indeed used to specify the key within your Kubernetes secret that contains the GCS credentials JSON. This is not always clearly documented in the official docs, but users upgrading from V1 to V2 have reported that setting
credentialsJsonSecretKey: gcp.json
(where
gcp.json
is the key in your secret) resolves mounting and credential issues for GCS storage. For example, a user notes: > You need to change
storage.gcs.credentialsPath: '/secrets/gcs-log-creds/gcp.json'
(in Helm v1
values.yml
) to
storage.gcs.credentialsJsonSecretKey: 'gcp.json'
(in Helm v2
values.yml
) > — [GitHub Issue #68178](https://github.com/airbytehq/airbyte/issues/68178) So, if you are using Helm chart V2 and your secret contains a key named
gcp.json
, you should add:
Copy code
yaml global:   storage:     type: gcs     secretName: ab-storage-v3     bucket:       activityPayload: bucket-name       log: bucket-name       state: bucket-name       workloadOutput: bucket-name     gcs:       projectId: my-project       credentialsJsonSecretKey: gcp.json
This should ensure that Airbyte correctly mounts and uses your GCS credentials from the Kubernetes secret. Summary: While not always present in the official documentation,
credentialsJsonSecretKey
is a supported and working field in Helm chart V2 for specifying the key in your secret that contains the GCS credentials JSON, as confirmed by user experience in the knowledge sources above.
l
@kapa.ai now, on source-declarative-manifest-discover pods Message: /secrets/gcs-log-creds/gcp.json Path Taken: new @j.i.Singleton i.a.c.ConnectorWatcher(@Named("output") Path outputPath, @Named("configDir") String configDir, @Value int fileTimeoutMinutes, @Value int fileTimeoutMinutesWithinSync, SidecarInput sidecarInput, ConnectorMessageProcessor connectorMessageProcessor, AirbyteMessageSerDeProvider serDeProvider, AirbyteProtocolVersionedMigratorFactory airbyteProtocolVersionedMigratorFactory, GsonPksExtractor gsonPksExtractor, WorkloadApiClient workloadApiClient, WorkloadOutputWriter outputWriter, SidecarLogContextFactory logContextFactory, HeartbeatMonitor heartbeatMonitor, MetricClient metricClient) \---> new @j.i.Singleton i.a.c.ConnectorWatcher(@Named("output") Path outputPath, @Named("configDir") String configDir, @Value int fileTimeoutMinutes, @Value int fileTimeoutMinutesWithinSync, SidecarInput sidecarInput, ConnectorMessageProcessor connectorMessageProcessor, AirbyteMessageSerDeProvider serDeProvider, AirbyteProtocolVersionedMigratorFactory airbyteProtocolVersionedMigratorFactory, GsonPksExtractor gsonPksExtractor, WorkloadApiClient workloadApiClient, [WorkloadOutputWriter outputWriter], SidecarLogContextFactory logContextFactory, HeartbeatMonitor heartbeatMonitor, MetricClient metricClient) \---> new @j.i.Singleton i.a.w.w.WorkloadOutputWriter([@Named("outputDocumentStore") StorageClient storageClient], AirbyteApiClient airbyteApiClient, MetricClient metricClient) at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2352) at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150) at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80) at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000) at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781) at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:210) at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2130) at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1360) at io.airbyte.workers.workload.$WorkloadOutputWriter$Definition.instantiate(Unknown Source) at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337) at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150) at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80) at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000) at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781) at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:210) at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2130) at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1360) at io.airbyte.connectorSidecar.$ConnectorWatcher$Definition.instantiate(Unknown Source) at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337) at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3150) at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80) at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3000) at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:855) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:847) at io.airbyte.connectorSidecar.ApplicationKt.main(Application.kt:25) at io.airbyte.connectorSidecar.ApplicationKt.main(Application.kt) Caused by: java.nio.file.NoSuchFileException: /secrets/gcs-log-creds/gcp.json at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261) at java.base/java.nio.file.Files.newByteChannel(Files.java:380) at java.base/java.nio.file.Files.newByteChannel(Files.java:432) at java.base/java.nio.file.Files.readAllBytes(Files.java:3281) at io.airbyte.commons.storage.StorageClientKt.gcsClient(StorageClient.kt:544) at io.airbyte.commons.storage.GcsStorageClient.<init>(StorageClient.kt:272) at io.airbyte.commons.storage.StorageClientFactory.create(StorageClient.kt:72) at io.airbyte.connectorSidecar.config.ApplicationFactory.workloadStorageClient(ApplicationFactory.kt:18) at io.airbyte.connectorSidecar.config.$ApplicationFactory$WorkloadStorageClient0$Definition.instantiate(Unknown Source) at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2337)
k
A message from kapa.ai
The error message:
Copy code
Caused by: java.nio.file.NoSuchFileException: /secrets/gcs-log-creds/gcp.json
indicates that the
source-declarative-manifest-discover
pod is expecting the GCS credentials file at
/secrets/gcs-log-creds/gcp.json
, but it cannot find it. This is a common issue when the secret is either not mounted correctly, the key in the secret does not match what the pod expects, or the Helm values are not aligned with the chart's requirements. Based on the knowledge sources: - In Helm chart V2, the correct way to specify which key in your Kubernetes secret should be used for the GCS credentials is with the
credentialsJsonSecretKey
field under
global.storage.gcs
. This field is not always present in the official documentation, but user reports confirm it works and is required for proper secret mounting in V2 ([see user confirmation and discussion](https://github.com/airbytehq/airbyte/issues/68178)). - The secret (e.g.,
ab-storage-v3
) must contain a key (e.g.,
gcp.json
) with your GCS credentials JSON. - Your
values.yaml
should look like this:
Copy code
yaml   global:     storage:       type: gcs       secretName: ab-storage-v3       bucket:         activityPayload: bucket-name         log: bucket-name         state: bucket-name         workloadOutput: bucket-name       gcs:         projectId: my-project         credentialsJsonSecretKey: gcp.json
- The pod will then mount the secret and expect the file at
/secrets/gcs-log-creds/gcp.json
. Troubleshooting steps: 1. Check the Secret: Ensure your secret (
ab-storage-v3
) contains a key named
gcp.json
with the correct credentials. 2. Check the Helm Values: Make sure you have set
credentialsJsonSecretKey: gcp.json
under
global.storage.gcs
in your
values.yaml
. 3. Check the Mount Path: The chart should mount the secret at
/secrets/gcs-log-creds/gcp.json
if the above is set correctly. If you do not set
credentialsJsonSecretKey
, or if the key in your secret does not match, the pod will not find the file and you will get the
NoSuchFileException
. Summary: Set
credentialsJsonSecretKey: gcp.json
in your Helm values, and ensure your secret contains a key named
gcp.json
. This should resolve the missing file error for the
source-declarative-manifest-discover
pods ([see user confirmation](https://github.com/airbytehq/airbyte/issues/68178)).
l
@kapa.ai the user confirmation is spot on... needed to remove the file path lol now, everything seems ok-ish i wanted to set the "jobs" default resource requests Previously, i set it in global.jobs.resources what about on v2
k
A message from kapa.ai
In Helm chart V2, the configuration for default job resource requests and limits has changed from V1. Previously (V1): You set default job resources under:
Copy code
yaml global:   jobs:     resources:       requests:         memory: 256Mi         cpu: 250m       limits:         memory: 1Gi         cpu: 200m
([see example](https://github.com/airbytehq/airbyte/issues/49843)) In V2: You should now set these under:
Copy code
yaml global:   workloads:     resources:       mainContainer:         cpu:           request: 250m           limit: 200m         memory:           request: 256Mi           limit: 1Gi
This change is confirmed in the migration guides and mapping tables, where, for example,
global.env_vars[JOB_MAIN_CONTAINER_CPU_REQUEST]
is now
global.workloads.resources.mainContainer.cpu.request
in V2 ([see mapping table](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)). Summary: Set your default job resource requests and limits in V2 under
global.workloads.resources.mainContainer
as shown above. This will apply to all job containers unless overridden by more specific configuration. If you need more granular control (e.g., per job type or connector), refer to the [connector resource configuration guide](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources).
l
@kapa.ai what is the main container? why does the "orchestrator" pod request 2 cpus? why is the sidecar called orchestrator but on the helm chart I can't see workloads.resources.orchestrator?
k
A message from kapa.ai
Here are answers to your questions, based strictly on the provided knowledge sources: --- ### What is the main container? In Airbyte job pods, the main container refers to the container running the actual connector logic (e.g., source or destination connector). Resource requests and limits for this container are set using the
global.workloads.resources.mainContainer
fields in Helm chart V2. This is the primary container responsible for executing the data sync, check, discover, or spec operations [see mapping table](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). --- ### Why does the "orchestrator" pod request 2 CPUs? The orchestrator pod (or sidecar) is an Airbyte-controlled container that runs alongside the main connector containers in a replication (SYNC) pod. Its responsibilities include middleware tasks such as scrubbing PPI, aggregating stats, transforming data, checkpointing progress, and handling side effects like logging and auth token refresh flows [see: Understanding Airbyte Jobs](https://docs.airbyte.com/platform/next/understanding-airbyte/jobs). The default resource requests for the orchestrator (sidecar) container are not set via the same
mainContainer
resource fields. Instead, they have their own environment variables (e.g.,
SIDECAR_KUBE_CPU_LIMIT
,
SIDECAR_KUBE_CPU_REQUEST
). In several user reports and logs, the orchestrator/sidecar is shown to default to 2 CPUs if not otherwise configured ([see logs](https://github.com/airbytehq/airbyte/issues/44497), [see logs](https://github.com/airbytehq/airbyte/issues/42921)). The knowledge sources do not provide a direct mapping for configuring orchestrator resources in Helm chart V2, so unless you set these environment variables explicitly, the default values (such as 2 CPUs) will be used. --- ### Why is the sidecar called orchestrator but on the helm chart I can't see workloads.resources.orchestrator? The terminology can be confusing: - In Airbyte documentation, the sidecar in a SYNC pod is often referred to as the Container Orchestrator. - In the Helm chart V2, there is no
workloads.resources.orchestrator
field. The chart only exposes
workloads.resources.mainContainer
for the main connector container. - Resource settings for the orchestrator/sidecar are controlled via specific environment variables (e.g.,
SIDECAR_KUBE_CPU_LIMIT
,
SIDECAR_KUBE_CPU_REQUEST
), not via a dedicated Helm values field ([see logs and issues](https://github.com/airbytehq/airbyte/issues/44497), [see mapping table](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)). If you need to adjust orchestrator/sidecar resources, you must set the appropriate environment variables using the
extraEnv
mechanism in your Helm values, as there is no direct
workloads.resources.orchestrator
field in V2. --- In summary: - The "main container" is the connector container. - The orchestrator/sidecar requests 2 CPUs by default unless overridden by environment variables. - There is no
workloads.resources.orchestrator
in Helm chart V2; orchestrator resources are set via environment variables, not a dedicated Helm field. If you need to customize these, use
extraEnv
to set the relevant environment variables.
l
@kapa.ai ok, got it last question: useConnectorResourceDefaults if I set this to true, then by default it will obbey the resources I specify on global.workloads.resources.mainContainer (and other keys) but if I override it per connector, it will obey the connector right?
k
A message from kapa.ai
Yes, your understanding is correct and matches the documented resource configuration hierarchy in Airbyte. If you set
useConnectorResourceDefaults
to
true
, Airbyte will, by default, use the resource values you specify under
global.workloads.resources.mainContainer
(and related keys) for all connectors. However, if you override the resource requirements at the connector level (for example, by updating the
resource_requirements
field in the
actor_definition
table for a specific connector), Airbyte will use those connector-specific settings instead of the global defaults. This precedence is explicitly described in the documentation: connector-specific or connector-definition resource requirements override the instance-wide (global) settings [see documentation](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources). So, to summarize: - Global defaults (e.g.,
global.workloads.resources.mainContainer
) are used if no more specific configuration exists. - Connector-level overrides (set in the database or via the UI/API) take precedence if present, as long as
useConnectorResourceDefaults
is enabled [see mapping and user reports](https://github.com/airbytehq/airbyte/issues/38178). This matches the configuration hierarchy and expected behavior in Airbyte.
l
@kapa.ai can I disable DISCOVER_REFRESH_WINDOW_MINUTES for specific connections?
k
A message from kapa.ai
Based on the knowledge sources, DISCOVER_REFRESH_WINDOW_MINUTES is a global or instance-level setting that controls how often Airbyte refreshes the schema for all sources. It can be set in your configuration (e.g., via
values.yaml
or environment variables) to adjust the minimum interval for schema refreshes, or set to
0
to disable automatic schema refreshes entirely. However, there is no information in the knowledge sources indicating that you can disable or override
DISCOVER_REFRESH_WINDOW_MINUTES
on a per-connection basis
. This setting applies globally to all connections in the instance [see documentation](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-airbyte#worker) [and](https://docs.airbyte.com/release_notes/v-1.4). If you need per-connection schema refresh control, the current Airbyte configuration does not support this according to the available documentation.
l
@kapa.ai how to set it in chart v2
k
A message from kapa.ai
To set
DISCOVER_REFRESH_WINDOW_MINUTES
in Airbyte Helm chart V2, you should use the
extraEnv
configuration for the relevant service (typically the
worker
). This is because, in V2,
DISCOVER_REFRESH_WINDOW_MINUTES
does not have a direct mapping in the main values structure and should be set as an extra environment variable. Here’s how you can set it in your `values.yaml`:
Copy code
yaml worker:   extraEnv:     - name: DISCOVER_REFRESH_WINDOW_MINUTES       value: "1440"  # Set to your desired value (e.g., 0 to disable automatic schema refreshes)
This approach is confirmed in the migration and configuration documentation, which states that for
DISCOVER_REFRESH_WINDOW_MINUTES
, you should "Use extraEnvs" in V2 [see mapping table](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). You cannot set this value per connection; it is a global setting for the instance [see documentation](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-airbyte#worker).
l
@kapa.ai I have a connection thats really time sensitive it runs every minute I noticed that it sometimes takes a long time for airbyte to launch the "replication-job-xxxxxx-attempt" pod
k
A message from kapa.ai
If your Airbyte connection is very time-sensitive and runs every minute, but you notice delays in launching the
replication-job-xxxxxx-attempt
pod, this is often related to resource availability and scheduling within your Kubernetes cluster. Key factors that can cause delays: 1. Resource Constraints: If your cluster does not have enough free CPU or memory, Airbyte jobs may be queued until resources become available. This is a common cause of delays, especially if you have many concurrent connections or jobs running. The Airbyte workload launcher will only start new pods when the cluster can accommodate them ([Scaling Airbyte](https://docs.airbyte.com/platform/1.8/operator-guides/scaling-airbyte#what-to-scale)). 2. MAX_SYNC_WORKERS Setting: The number of concurrent sync jobs is controlled by the
MAX_SYNC_WORKERS
environment variable. If this is set too low, jobs will be queued and wait for a worker to become available. Increasing this value (and ensuring your cluster can handle the load) can help reduce wait times ([Forum: Syncs taking almost an hour for <20kb of data](https://discuss.airbyte.io/t/3780)). 3. Kubernetes Pod Scheduling: Even if Airbyte is ready to launch a job, Kubernetes itself may delay pod startup if there are not enough resources or if there are scheduling bottlenecks. Make sure your cluster is sized appropriately and can handle the number of concurrent pods Airbyte may launch ([Scaling Airbyte](https://docs.airbyte.com/platform/1.8/operator-guides/scaling-airbyte#what-to-scale)). 4. Job Queuing and Workloads Architecture: Airbyte’s workloads architecture decouples job scheduling from job starting. Jobs may be queued internally until resources are available, which can introduce delays in high-load or resource-constrained environments ([Understanding Airbyte Jobs](https://docs.airbyte.com/platform/next/understanding-airbyte/jobs)). Recommendations: - Monitor your cluster’s resource usage and consider scaling up if you see frequent queuing. - Review and, if needed, increase
MAX_SYNC_WORKERS
to allow more concurrent jobs. - Ensure your Kubernetes cluster can schedule at least
2 x <number-of-possible-concurrent-connections>
pods at once, as a rule of thumb ([Scaling Airbyte](https://docs.airbyte.com/platform/1.8/operator-guides/scaling-airbyte#what-to-scale)). - If you have many jobs running at the same time, try to stagger their schedules to avoid thundering herd effects. If you have already tuned these settings and still see delays, you may need to further investigate Kubernetes events and Airbyte logs to identify specific bottlenecks.
l
@kapa.ai I found this when checking the cron pod's logs 2025-11-10 073935,237 [scheduled-executor-thread-15] ERROR i.m.s.DefaultTaskExceptionHandler(handle):47 - Error invoking scheduled task for bean [io.airbyte.cron.jobs.SelfHealTemporalWorkflows@2d353d77] RESOURCE_EXHAUSTED: namespace rate limit exceeded io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: namespace rate limit exceeded at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:351) at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:332) at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:174) at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.listClosedWorkflowExecutions(WorkflowServiceGrpc.java:5903) at io.airbyte.commons.temporal.WorkflowServiceStubsWrapped.blockingStubListClosedWorkflowExecutions$lambda$0(WorkflowServiceStubsWrapped.kt:38) at dev.failsafe.Functions.lambda$toCtxSupplier$11(Functions.java:243) at dev.failsafe.Functions.lambda$get$0(Functions.java:46) at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74) at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187) at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376) at dev.failsafe.FailsafeExecutor.get(FailsafeExecutor.java:112) at io.airbyte.commons.temporal.RetryHelper.withRetries(RetryHelper.kt:57) at io.airbyte.commons.temporal.WorkflowServiceStubsWrapped.withRetries(WorkflowServiceStubsWrapped.kt:63) at io.airbyte.commons.temporal.WorkflowServiceStubsWrapped.blockingStubListClosedWorkflowExecutions(WorkflowServiceStubsWrapped.kt:37) at io.airbyte.commons.temporal.TemporalClient.fetchClosedWorkflowsByStatus(TemporalClient.kt:137) at io.airbyte.commons.temporal.TemporalClient.restartClosedWorkflowByStatus(TemporalClient.kt:113) at io.airbyte.cron.jobs.SelfHealTemporalWorkflows.cleanTemporal(SelfHealTemporalWorkflows.kt:39) at io.airbyte.cron.jobs.$SelfHealTemporalWorkflows$Definition$Exec.dispatch(Unknown Source) at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:456) at io.micronaut.inject.DelegatingExecutableMethod.invoke(DelegatingExecutableMethod.java:86) at io.micronaut.context.bind.DefaultExecutableBeanContextBinder$ContextBoundExecutable.invoke(DefaultExecutableBeanContextBinder.java:152) at io.micronaut.scheduling.processor.ScheduledMethodProcessor.lambda$scheduleTask$2(ScheduledMethodProcessor.java:160) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)
k
A message from kapa.ai
The error message you are seeing in the cron pod logs:
Copy code
RESOURCE_EXHAUSTED: namespace rate limit exceeded
indicates that the Temporal service used by Airbyte is hitting its namespace rate limit. This is a known issue that has affected multiple Airbyte users, especially in environments with a high number of syncs or frequent job activity. What does this mean? Temporal enforces rate limits on API calls per namespace to protect the system from overload. When these limits are exceeded, operations such as listing closed workflow executions (which the
SelfHealTemporalWorkflows
job in the cron pod performs) will fail with this error. This can lead to delays or failures in Airbyte's internal housekeeping tasks, and in some cases, can impact job scheduling and overall system responsiveness ([see related issues](https://github.com/airbytehq/airbyte/issues/30691), [discussion](https://github.com/airbytehq/airbyte/issues/46554)). How to address this? - Upgrade Airbyte: Recent Airbyte releases (v1.4.0 and later) have improved Temporal rate limit defaults and reduced the frequency of these errors, especially for the cron service ([release notes](https://docs.airbyte.com/release_notes/v-1.4#-bug-fixes)). - Increase Temporal Rate Limits: If you are self-hosting and have access to Temporal configuration, you can increase the rate limits for your namespace. This is typically done by overriding Temporal's dynamic config, but the ability to do this depends on your deployment method. Some users have reported that newer Helm chart versions expose more generous defaults ([see user report](https://github.com/airbytehq/airbyte/issues/46554)). - Cluster Resources: Ensure your cluster has sufficient resources and that there are no bottlenecks that could exacerbate rate limiting. Note: If you are using the Airbyte Helm chart and cannot directly change Temporal's configuration, upgrading to the latest chart version may help, as it includes improved defaults for Temporal rate limits ([see discussion](https://github.com/airbytehq/airbyte/issues/46554)). Summary: This error is caused by hitting Temporal's namespace rate limits. Upgrading Airbyte and/or increasing Temporal's rate limits (if possible) are the recommended solutions according to the knowledge sources. If you are on a recent version and still see this, you may need to further scale your Temporal deployment or adjust your workload patterns.
l
@kapa.ai how do I increase the rate limit
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain explicit instructions or documentation on how to increase the Temporal namespace rate limit in Airbyte, either via the Helm chart or direct Temporal configuration. What is clear from the sources is: - Hitting the Temporal namespace rate limit is a known issue, especially in high-throughput environments. - Some users have reported that newer Airbyte and Helm chart versions include more generous Temporal rate limit defaults, which helped resolve the issue after upgrading ([see user report](https://github.com/airbytehq/airbyte/issues/46554)). - There is mention that Temporal configuration values were not easily accessible or modifiable in earlier Airbyte Helm charts, but improvements have been made in more recent releases ([see discussion](https://github.com/airbytehq/airbyte/issues/46554)). However, there are no concrete steps or configuration examples in the knowledge sources for directly increasing the Temporal rate limit (such as which values to set, or where to set them in the Helm chart or Temporal config). If you need to increase the rate limit, you may need to consult the official Temporal documentation or reach out to Airbyte support for guidance, as the provided sources do not cover this configuration.
l
@kapa.ai what can I do to try to scale temporal?
k
A message from kapa.ai
To scale Temporal in your Airbyte deployment, the knowledge sources recommend the following actions: 1. Increase Temporal Replicas: You can increase the number of Temporal replicas in your Helm chart configuration. For example, in your `values.yaml`:
Copy code
yaml    temporal:      enabled: true      replicaCount: 2  # or higher, depending on your needs
Increasing the number of Temporal pods can help distribute the load and improve availability. Users have reported that deploying with more Temporal replicas helped resolve issues with stuck jobs and improved accessibility ([see user report](https://github.com/airbytehq/airbyte/issues/46554)). 2. Tune Temporal Database Connections: Temporal maintains multiple idle connections to its database. By default, this is set to 20, but Temporal may create multiple pools, resulting in more connections than expected. You can adjust the number of allowed idle and total connections using the
SQL_MAX_IDLE_CONNS
and
SQL_MAX_CONNS
environment variables. If you increase idle connections, also increase the total allowed connections accordingly, as
SQL_MAX_IDLE_CONNS
is capped by
SQL_MAX_CONNS
 ([see scaling docs](https://docs.airbyte.com/platform/1.8/operator-guides/scaling-airbyte#what-to-scale)). 3. Ensure Sufficient Cluster Resources: Make sure your Kubernetes cluster has enough resources (CPU, memory) to handle the increased number of Temporal pods and the overall workload. Insufficient resources can lead to scheduling delays and degraded performance ([see scaling docs](https://docs.airbyte.com/platform/1.8/operator-guides/scaling-airbyte#what-to-scale)). 4. Monitor and Adjust as Needed: Use infrastructure monitoring tools to track CPU and memory usage for Temporal and adjust your scaling settings as your workload grows. Note: The knowledge sources do not provide explicit instructions for increasing Temporal's internal rate limits (such as namespace rate limits), but scaling the number of replicas and tuning database connections are the primary documented approaches for improving Temporal's performance and reliability in Airbyte. If you continue to experience rate limit issues, upgrading to the latest Airbyte and Helm chart versions may help, as newer releases include improved defaults for Temporal ([see user report](https://github.com/airbytehq/airbyte/issues/46554)).
l
@kapa.ai I see this every 10 seconds io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: namespace rate limit exceeded at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:351) at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:332) at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:174) at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.listClosedWorkflowExecutions(WorkflowServiceGrpc.java:5903) at io.airbyte.commons.temporal.WorkflowServiceStubsWrapped.blockingStubListClosedWorkflowExecutions$lambda$0(WorkflowServiceStubsWrapped.kt:38) at dev.failsafe.Functions.lambda$toCtxSupplier$11(Functions.java:243) at dev.failsafe.Functions.lambda$get$0(Functions.java:46) at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74) at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187) at dev.failsafe.FailsafeExecutor.call(FailsafeExecutor.java:376) at dev.failsafe.FailsafeExecutor.get(FailsafeExecutor.java:112) at io.airbyte.commons.temporal.RetryHelper.withRetries(RetryHelper.kt:57) at io.airbyte.commons.temporal.WorkflowServiceStubsWrapped.withRetries(WorkflowServiceStubsWrapped.kt:63) at io.airbyte.commons.temporal.WorkflowServiceStubsWrapped.blockingStubListClosedWorkflowExecutions(WorkflowServiceStubsWrapped.kt:37) at io.airbyte.commons.temporal.TemporalClient.fetchClosedWorkflowsByStatus(TemporalClient.kt:137) at io.airbyte.commons.temporal.TemporalClient.restartClosedWorkflowByStatus(TemporalClient.kt:113) at io.airbyte.cron.jobs.SelfHealTemporalWorkflows.cleanTemporal(SelfHealTemporalWorkflows.kt:39) at io.airbyte.cron.jobs.$SelfHealTemporalWorkflows$Definition$Exec.dispatch(Unknown Source) at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:456) at io.micronaut.inject.DelegatingExecutableMethod.invoke(DelegatingExecutableMethod.java:86) at io.micronaut.context.bind.DefaultExecutableBeanContextBinder$ContextBoundExecutable.invoke(DefaultExecutableBeanContextBinder.java:152) at io.micronaut.scheduling.processor.ScheduledMethodProcessor.lambda$scheduleTask$2(ScheduledMethodProcessor.java:160) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)
k
A message from kapa.ai
The error message you are seeing:
Copy code
io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: namespace rate limit exceeded
means that your Airbyte deployment is hitting the Temporal namespace rate limit. This is a known issue, especially in environments with high job throughput or frequent syncs. It is commonly triggered by the
SelfHealTemporalWorkflows
cron job, which queries Temporal for closed workflows on a schedule ([see example](https://github.com/airbytehq/airbyte/issues/68115)). What does this mean? - Temporal enforces rate limits on API calls per namespace to prevent overload. - When the limit is exceeded, operations like listing closed workflow executions will fail with this error. - This can lead to delays in Airbyte's internal housekeeping and, in some cases, impact job scheduling and system responsiveness ([see discussion](https://github.com/airbytehq/airbyte/issues/30691)). What can you do? - Upgrade Airbyte and Helm Chart: Newer versions have improved Temporal rate limit defaults, which have resolved this issue for some users ([see user report](https://github.com/airbytehq/airbyte/issues/46554)). - Scale Temporal: Increase the number of Temporal replicas in your deployment to help distribute the load. For example, set
temporal.replicaCount
to a higher value in your
values.yaml
 ([see user experience](https://github.com/airbytehq/airbyte/issues/46554)). - Cluster Resources: Ensure your Kubernetes cluster has enough CPU and memory to handle the increased load. - Temporal Rate Limit Configuration: The knowledge sources do not provide explicit steps for increasing the namespace rate limit directly. If you need to adjust this, you may need to consult Temporal's own documentation or reach out to Airbyte support, as this is not currently exposed in the Airbyte Helm chart ([see discussion](https://github.com/airbytehq/airbyte/issues/46554)). Summary: This error is due to hitting Temporal's namespace rate limit. Upgrading Airbyte, scaling Temporal, and ensuring sufficient cluster resources are the recommended actions according to the knowledge sources. Directly increasing the rate limit is not documented in the provided sources.