优化镜像拉取
This commit is contained in:
@@ -27,6 +27,7 @@ with DAG(
|
|||||||
production_task = KubernetesPodOperator(namespace='airflow-plus',
|
production_task = KubernetesPodOperator(namespace='airflow-plus',
|
||||||
# image="my-production-job:release-1.0.1", <-- old release
|
# image="my-production-job:release-1.0.1", <-- old release
|
||||||
image="192.168.0.19:9012/comm-add:1.0.1",
|
image="192.168.0.19:9012/comm-add:1.0.1",
|
||||||
|
image_pull_policy="always",
|
||||||
image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")],
|
image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")],
|
||||||
cmds=["python", "main.py"],
|
cmds=["python", "main.py"],
|
||||||
arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf else "all"}}'],
|
arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf else "all"}}'],
|
||||||
|
|||||||
Reference in New Issue
Block a user