优化镜像拉取

This commit is contained in:
shenjian@fangjia.com
2023-05-29 15:26:20 +08:00
parent 5877566c2e
commit 6b4cb7f78a
+1
View File
@@ -27,6 +27,7 @@ with DAG(
production_task = KubernetesPodOperator(namespace='airflow-plus',
# image="my-production-job:release-1.0.1", <-- old release
image="192.168.0.19:9012/comm-add:1.0.1",
image_pull_policy="always",
image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")],
cmds=["python", "main.py"],
arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf else "all"}}'],