Sonar and ingress-nginx controller

I am deploying Sonarqube onto an AKS cluster using the Helm chart
I am using the kubernetes ingress-nginx controller

if i deploy everything with a standard ingress just on ‘/’ of my host, it appears to all work fine.
if i deploy the ingress using the target-rewrite, when i browse to sonarqube it just sits on a loading page.

the ingress controller logs show:

    • [04/Aug/2023:12:09:45 +0000] “GET /api/features/list HTTP/2.0” 404 548 “https:/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36” 32 0.001 [upstream-default-backend] 548 0.001 404 7bd950927105823607011c5f5c307648

my ingress config is:
enabled: true
ingressClassName: nginx
- name:
path: /sonarqube(/|$)(.*)
pathType: Prefix
# – Additional ingress labels /$2 “true” “HTTP” http “64m”

thanks :slight_smile: