Commit 346d8308 authored by 김진영's avatar 김진영
Browse files

Update db-backup.py

parent 40e6b83c
......@@ -26,9 +26,13 @@ with DAG(
catchup=False,
) as dag:
# (Task1) DB 접속 주소 가져오기
get_db_ip = BashOperator(
task_id='get_db_ip',
bash_command="kubectl get svc mariadb-galera -o yaml -n mariadb -o jsonpath=\"{.spec.clusterIP}\""
# get_db_ip = BashOperator(
# task_id='get_db_ip',
# bash_command="kubectl get svc mariadb-galera -o yaml -n mariadb -o jsonpath=\"{.spec.clusterIP}\""
# )
mkdir_date = BashOperator(
task_id='mkdir_date',
bash_command="mkdir /home/ldccai/20220607"
)
# # (Task2) 헬스체크
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment