Airflow Kubernetes Executor Mounting Volumes to Worker Pods #590
Unanswered
ngreen-ny
asked this question in
Questions & Answers
Replies: 1 comment
-
@ngreen-ny firstly, most of your Also, when using this chart you don't need to create your own You can just remove all of your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day, we are looking at switching from the LocalExecutor to the KubernetesExecutor in Airflow. I have one question though.
I have created a docker image with airflow to execute my task pods on it.
The only issue is that the dag volumes don't get mounted to the worker pod so the dag cannot be found. The pod template spec has the correct volumes showing.
Airflow Version v2.2.3
Here is part of my configmap for the pod template spec:
When the task pod runs the volumes are not mounted:
Volumes:
default-token-kxpnv:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-kxpnv
Optional: false
QoS Class: BestEffort
Ideally I would like to have these volumes by default and not have to define them in each dag. Is that possible to get them mounted to the worker pod. Here are my config below:
Beta Was this translation helpful? Give feedback.
All reactions