首页 > 解决方案 > 如何通过 Git 挂载 Airflow DAG?

问题描述

发现在airflow.cfg 中有可能“通过Git 安装DAG”:

# Git credentials and repository for DAGs mounted via Git (mutually exclusive with volume claim)
git_repo = https://username@bitbucket.org/repo.git
git_branch = master
git_subpath =
# Use git_user and git_password for user authentication or git_ssh_key_secret_name and git_ssh_key_secret_key
# for SSH authentication
git_user = username
git_password = pass
git_sync_root = /git
git_sync_dest = repo
# Mount point of the volume if git-sync is being used.
# i.e. /home/user/airflow/dags
git_dags_folder_mount_point = /home/user/airflow/dags

无法找到有关此的任何文档。

我是否理解正确,只需推送到指定的分支,我就可以使用 Git 存储库将我的 DAG 部署到 Airflow 生产服务器?

无法进行该操作,希望有任何想法。

标签: airflow

解决方案


推荐阅读