GitHub user ramdas2141 closed a discussion: How to enable ingress other than 
root path ie /airflow

### 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

- [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md

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

GitHub link: https://github.com/apache/airflow/discussions/58114

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to