How can i override the values referenced by the wo...
# ask-ai
g
How can i override the values referenced by the worker in the airbyte-env configmap, shouldnt env_vars overwrite the values in the configmap?
k
To override values referenced by the worker in the airbyte-env ConfigMap, you should use the env_vars section in your values.yaml file for the worker component. According to user reports and examples, setting environment variables under worker.env_vars in your values.yaml will override the corresponding values from the ConfigMap for the worker pod. For example:
Copy code
yaml worker:   env_vars:     MAX_SYNC_WORKERS: 12     MAX_CHECK_WORKERS: 12
This approach has been confirmed to work for overriding variables like MAX_SYNC_WORKERS and MAX_CHECK_WORKERS, even if those variables are also present in the airbyte-env ConfigMap. The env_vars defined in values.yaml take precedence for the worker pod over those in the ConfigMap, as per user feedback in the Airbyte community and GitHub issues. However, there have been some reports of confusion and issues with other methods (such as extraEnv or global.env_vars), so the recommended and working approach is to use the env_vars field directly under the relevant component (e.g., worker) in your values.yaml file. If you are still seeing the ConfigMap values take precedence, ensure your Helm chart version is up to date and that your values.yaml is being applied correctly during deployment. If issues persist, it may be related to a specific chart version or a bug, as discussed in some GitHub issues. References: - [Support the MAX_*_WORKERS environment variables in the Helm chart](https://github.com/airbytehq/airbyte/issues/29547) - [Update helm template to load
env_vars
from global values](https://github.com/airbytehq/airbyte/issues/22389)