-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support using git-sync with PVC (allowing there to only be one git-sync container) #283
Comments
in airflow1 version, gitSync with dags pvc works. we hope it keeps the same in airflow2. which would not leading the task container waiting for git clone done (this masters a lot if the git repo is too big or poor network connection) |
@justbeay two comments:
|
I think this feature is really important for KubernetesExecutor, as right now if cloning the git repo takes a long time, then EVERY task will take at least that long, this is because the |
I have created a PR trying to address these, I'd appreciate feedback on it. |
Currently, we don't let users enable
dags.gitSync
anddags.persistence
at the same time.If we do this (obviously requiring
dags.persistence.accessMode = ReadWriteMany
), we can massively reduce the number of git-sync containers required.This is because we won't have to put a git-sync container in every Pod, but rather have all pods mount the PVC, while having a central single git-sync deployment that keeps the PVC up to date.
The text was updated successfully, but these errors were encountered: