Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
김진영
airflow-test
Commits
346d8308
Commit
346d8308
authored
Jun 07, 2022
by
김진영
Browse files
Update db-backup.py
parent
40e6b83c
Changes
1
Hide whitespace changes
Inline
Side-by-side
db-backup.py
View file @
346d8308
...
@@ -26,9 +26,13 @@ with DAG(
...
@@ -26,9 +26,13 @@ with DAG(
catchup
=
False
,
catchup
=
False
,
)
as
dag
:
)
as
dag
:
# (Task1) DB 접속 주소 가져오기
# (Task1) DB 접속 주소 가져오기
get_db_ip
=
BashOperator
(
# get_db_ip = BashOperator(
task_id
=
'get_db_ip'
,
# task_id='get_db_ip',
bash_command
=
"kubectl get svc mariadb-galera -o yaml -n mariadb -o jsonpath=
\"
{.spec.clusterIP}
\"
"
# 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) 헬스체크
# # (Task2) 헬스체크
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment