<@U04S8PLJWMT> When trying to pull a custom connec...
# ask-ai
k
@kapa.ai When trying to pull a custom connector using Airbyte Core I am getting an HTTP 502 error. I have set
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET
with the name of a Kubernetes Secret I have already created in the values.yaml file.
k
If you are getting an HTTP 502 error when trying to pull a custom connector in Airbyte Core, and you have already set
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET
with the name of a Kubernetes Secret in your
values.yaml
, there are a few things to consider based on the knowledge sources: 1. Image Pull Secret Configuration: In recent Airbyte versions (1.4.0+), the recommended way to configure image pull secrets is to use the
global.imagePullSecrets
field in your
values.yaml
file, rather than setting
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET
directly. The Helm chart merges these values, and using both can cause issues. You should define your secret like this:
Copy code
yaml    global:      imagePullSecrets:        - name: regcred
Where
regcred
is the name of your Kubernetes secret containing the Docker registry credentials. This secret should be created as follows:
Copy code
sh    kubectl create secret generic regcred \      --from-file=.dockerconfigjson=<path/to/.docker/config.json> \      --type=kubernetes.io/dockerconfigjson
[Custom image registry setup](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/custom-image-registries#step-1-customize-airbyte-to-use-your-image-registry) 2. Version-Specific Issues: There have been known issues in certain Airbyte versions (notably 1.4.0) where missing or misconfigured image pull secret variables in the Helm chart or ConfigMap can cause pod startup failures or image pull errors. The recommended fix is to use only
global.imagePullSecrets
and remove
global.jobs.kube.main_container_image_pull_secret
from your configuration. This ensures the secret is correctly propagated to job pods, including those for custom connectors. This was confirmed as a fix in user reports and by Airbyte contributors [Helm chart issue discussion](https://github.com/airbytehq/airbyte/issues/52034). 3. Service Account Alternative: As an alternative, you can associate the image pull secret with a Kubernetes service account and set the
JOB_KUBE_SERVICEACCOUNT
environment variable to use that service account for your jobs. This approach is also supported and can help ensure the secret is available to all pods launched by Airbyte jobs [GitHub issue workaround](https://github.com/airbytehq/airbyte/issues/36378). Summary of steps to resolve: - Remove
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET
from your
values.yaml
if you are on Airbyte 1.4.0 or later. - Use
global.imagePullSecrets
instead. - Ensure your Kubernetes secret is correctly created and referenced. - If you still encounter issues, consider using a service account with the image pull secret attached. If you follow these steps and still receive HTTP 502 errors, the issue may be with your registry's availability or network configuration, which is outside the scope of Airbyte's configuration. If you need more specific troubleshooting, please provide your Airbyte version and a snippet of your
values.yaml
configuration.
k
for posterity, I did have both
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET
and
imagePullSecrets
. Removing
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_SECRET
fixed the issue