DevSpace - The Fastest Developer Tool for Kubernetes ⚡ Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes.
I am trying to develop a custom airflow image (including development of some cusotm python packages - that's why I need devspace.sh) using airflow helm charts in local kubernetes on my laptop (I am using Ubuntu in WSL + kind as my kubernetes cluster). I am able to use the default airflow image successfully and trigger file synchronization into the airflow containers, but I would like to replace the image from helm charts with my custom image (it has some python dependencies installed needed for development, which are not present in the default container). I am unable to replace the image in helm charts - no matter how I try, I get Init:InvalidImageName from kubernetes:
When I inspect the pods to see what images are being used, I get images with double latest:latest tag as follows (or double tags like latest:2.7.1 etc, in other combinations), no matter what I try:
I tried adding registry url to the image deffinition, like localhost:5001 or kind-registry:5000 but the tags were always double.
What did you expect to happen instead?
The images used should come from the kind's built in registry, with a single tag, like: custom/apache-airflow:latest. The airflow cluster should start up successfully using my custom airflow docker image. I should be able to synchronize dags (and more files in the future) into the cluster.
How can we reproduce the bug? (as minimally and precisely as possible)
What happened?
I am trying to develop a custom airflow image (including development of some cusotm python packages - that's why I need devspace.sh) using airflow helm charts in local kubernetes on my laptop (I am using Ubuntu in WSL + kind as my kubernetes cluster). I am able to use the default airflow image successfully and trigger file synchronization into the airflow containers, but I would like to replace the image from helm charts with my custom image (it has some python dependencies installed needed for development, which are not present in the default container). I am unable to replace the image in helm charts - no matter how I try, I get
Init:InvalidImageName
from kubernetes:When I inspect the pods to see what images are being used, I get images with double
latest:latest
tag as follows (or double tags likelatest:2.7.1
etc, in other combinations), no matter what I try:I tried adding registry url to the image deffinition, like
localhost:5001
orkind-registry:5000
but the tags were always double.What did you expect to happen instead?
The images used should come from the kind's built in registry, with a single tag, like:
custom/apache-airflow:latest
. The airflow cluster should start up successfully using my custom airflow docker image. I should be able to synchronize dags (and more files in the future) into the cluster.How can we reproduce the bug? (as minimally and precisely as possible)
Use my devspace.yaml and my Dockerfile (just copy constraints from here: https://[raw.githubusercontent.com/apache/airflow/constraints-2.7.3/constraints-3.11.txt](https://raw.githubusercontent.com/apache/airflow/constraints-2.7.3/constraints-3.11.txt and add requirements.txt with any python dependency). Run
devspace dev
and observe the problems I described above.My devspace.yaml:
My Dockerfile:
Local Environment:
Anything else we need to know?