728x90
반응형
airflow Api 설정 켜기_helm
as is
[api]
auth_backend = airflow.api.auth.backend.deny_all
to be
[api]
auth_backend = airflow.api.auth.backend.basic_auth
(helm)에 수정
config:
api:
#auth_backend: airflow.api.auth.backend.deny_all
auth_backend: airflow.api.auth.backend.basic_auth
테스트
curl --user "<ID>:<PWD>" -X 'POST' \
'http://<IP>:<PORT>/api/v1/dags/sample_hello_world_dag/dagRuns' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"conf": {},
"dag_run_id": "test-run",
"execution_date": "2021-12-16T02:38:20.364Z"
}'
https://airflow.apache.org/docs/apache-airflow/stable/security/api.html
API — Airflow Documentation
airflow.apache.org
728x90
반응형
'Data > Airflow' 카테고리의 다른 글
Kubernetes)Airflow설치_helm (0) | 2022.02.21 |
---|---|
udemy)Airflow Operators Guide_1,2장 :: mightytedkim (0) | 2022.01.13 |
Kubernetes) k8s와 Airflow 이용한 spark작업_SparkKubernetesOperator (14) | 2021.11.25 |
Airflow) K8S Pod 만들기_k8sPodOperator, helm (5) | 2021.11.12 |
Airflow) log를 minio에 저장_connection,yaml (0) | 2021.11.12 |