繁体   English   中英

在 Apache ZD1662521E6B89809B45A825FCEB7B23 中使用 REST API

[英]Using the REST API in Apache Airflow Helm Chart

I'm running Apache Airflow, built off of the Helm chart, and I'd like to use the REST Api to run dags. 但是,当我提出请求时,我收到 401 Unauthenticated 错误。

我知道这是由于 auth_backends 设置不正确。 我的问题是我应该在 Helm 图表的 value.yaml 文件中添加什么,以便它在配置中初始化 auth_backends? Airflow 文档在这一点上似乎已经过时了。

这是我当前的值。yaml 文件:

executor: CeleryExecutor
dags:
  persistence:
    enabled: true
    existing-claim: task-pv-claim
  gitSync:
    enabled: false
redis: 
  enabled: true
scheduler:
  extraInitContainers:
  - name: fix-dags-permissions
    image: busybox
    command: ["sh", "-c", "chown -R 50000:0 /opt/airflow/dags/" ]
    securityContext:
      runAsUser: 0
    volumeMounts:
      - mountPath: /opt/airflow/dags/
        name: dags

谢谢您的帮助!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM