Skip to content

How to enable ingress other than root path ie /airflow #57613

@ramdas2141

Description

@ramdas2141

Official Helm Chart version

1.18.0 (latest released)

Apache Airflow version

3.0.2

Kubernetes Version

v1.27.4

Helm Chart configuration

I am trying to deploy latest airflow helm chart
chart - airflow-1.18.0
Image : version 3.0.2

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: airflow-ingress
annotations:
# Rewrite the path from /airflow to / to send clean requests to the API server
nginx.ingress.kubernetes.io/rewrite-target: /$2
# Ensure correct redirection for the custom path
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:

  • host: hostname.com
    http:
    paths:
    • path: /airflow(/|$)(.*) # Match requests starting with /airflow or /airflow/
      pathType: ImplementationSpecific
      backend:
      service:
      name: airflow-api-server # The name of your Airflow API server service
      port:
      name: api-server # The port name or number for the API server

config added
webserver:
# For Airflow 2.X
enable_proxy_fix: 'True'
# For Airflow 1.10
rbac: 'True'
base_url: "https://hostname.com/airflow"

I am getting blank page while hitting https://hostname.com/airflow URL
anything missing

Docker Image customizations

No response

What happened

No response

What you think should happen instead

No response

How to reproduce

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: airflow-ingress
annotations:
# Rewrite the path from /airflow to / to send clean requests to the API server
nginx.ingress.kubernetes.io/rewrite-target: /$2
# Ensure correct redirection for the custom path
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:

  • host: hostname.com
    http:
    paths:
    • path: /airflow(/|$)(.*) # Match requests starting with /airflow or /airflow/
      pathType: Prefix
      backend:
      service:
      name: airflow-api-server # The name of your Airflow API server service
      port:
      name: api-server # The port name or number for the API server

config added
webserver:
# For Airflow 2.X
enable_proxy_fix: 'True'
# For Airflow 1.10
rbac: 'True'
base_url: "https://hostname.com/airflow"

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Getting blank page on https://hostname.com/airflow url hit

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:helm-chartAirflow Helm Chartkind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions