Hi,
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:/myapp.co.uk/sonarqube/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36” 32 0.001 [upstream-default-backend] 127.0.0.1:8181 548 0.001 404 7bd950927105823607011c5f5c307648
my ingress config is:
ingress:
enabled: true
ingressClassName: nginx
hosts:
- name: myapp.co.uk
path: /sonarqube(/|$)(.*)
pathType: Prefix
annotations:
# – Additional ingress labels
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/force-ssl-redirect: “true”
nginx.ingress.kubernetes.io/backend-protocol: “HTTP”
nginx.ingress.kubernetes.io/protocol: http
nginx.ingress.kubernetes.io/proxy-body-size: “64m”
thanks