Airflow on Kubernetes: couldn't parse image reference

5/17/2021

Running Airflow in GKE. When scheduler spawn workers I am facing the next problem:

Failed to apply default image tag "my_registry_address_without_https:python:3.9.4-alpine": couldn't parse image reference "my_registry_address_without_https:python:3.9.4-alpine": invalid reference format

In airflow.cfg I have the next configs:

# The repository of the Kubernetes Image for the Worker to Run
worker_container_repository = my_registry_address_without_https

# The tag of the Kubernetes Image for the Worker to Run
worker_container_tag = python:3.9.4-alpine

It supposes to parse properly, but can't understand, what am I missing..

-- Simon Osipov
airflow
kubernetes
kubernetes-pod

1 Answer

5/24/2021

The problem was with the address of the repository. It supposes to be registry/image:

# The repository of the Kubernetes Image for the Worker to Run
worker_container_repository = my_registry_address_without_https/python

# The tag of the Kubernetes Image for the Worker to Run
worker_container_tag = 3.9.4-alpine
-- Simon Osipov
Source: StackOverflow