优化镜像拉取

This commit is contained in:
shenjian@fangjia.com
2023-05-29 15:28:47 +08:00
parent 6b4cb7f78a
commit 89e5814468
+1 -1
View File
@@ -27,7 +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_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"}}'],