优化动态安装

This commit is contained in:
Jian Shen
2023-03-11 13:07:18 +08:00
parent 0a98c28ba3
commit 28096a64b8
+2 -1
View File
@@ -4,7 +4,7 @@ import pendulum
init_container = { init_container = {
'name': 'init-container', 'name': 'init-container',
#'image': 'busybox', 'image': 'busybox',
'command': [ 'command': [
'sh', 'sh',
'-c', '-c',
@@ -21,5 +21,6 @@ with DAG(
) as dag: ) as dag:
task = KubernetesPodOperator( task = KubernetesPodOperator(
task_id='install', task_id='install',
image="apache/airflow:2.5.1",
init_containers=[init_container] init_containers=[init_container]
) )