charts
charts copied to clipboard
How to use a custom Docker image from a private Docker registry?
Hi folks! And thank you for a great project.
In our company we have a private docker registry (artifactory) and need to use it to store our docker images.
So, if I want to use custom airflow docker image (par example, with some extra pip and apt packages installed) I should save this image in our private docker registry.
Can you please tell me, how can I tell airflow
's helm chart to pull image from private docker registry? And how to pass credentials in this case?
The first thing you need to do is to create a image pull secret on Kubernetes, you can follow the tutorial here.
Once you have the pull secret created in your cluster, you can simply pass it to the chart via airflow.image.pullSecret
variable, here's an example:
airflow:
image:
repository: registry.company.com/airflow/custom-image
tag: latest # or any tag you'd like
pullSecret: my-pull-secret
Hi @karakanb, I've tried following your suggestion, but the only way to make it work was by using:
images:
airflow:
repository: registry.company.com/airflow/custom-image
tag: latest
Instead of:
airflow:
image:
repository: registry.company.com/airflow/custom-image
tag: latest
Is this expected? Did the helm config change recently?
@LucaSoato I think you are using the official Airflow chart, which is a different chart than this repo:
- values file for the Official chart: https://github.com/apache/airflow/blob/main/chart/values.yaml#L55
- values file for this repo: https://github.com/airflow-helm/charts/blob/main/charts/airflow/values.yaml#L4-L18
please make sure you are checking the documentation for the correct chart.
This issue has been automatically marked as stale because it has not had activity in 60 days. It will be closed in 7 days if no further activity occurs.
Thank you for your contributions.
Issues never become stale if any of the following is true:
- they are added to a Project
- they are added to a Milestone
- they have the
lifecycle/frozen
label