From df2aae513449f772e7b704a3babfe61e69afdae4 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 22 Sep 2024 14:14:58 +0200 Subject: [PATCH] strip /ip prefix for ip listner --- ip-mziesel-nl/base/ip-mziesel-nl-ingress.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ip-mziesel-nl/base/ip-mziesel-nl-ingress.yaml b/ip-mziesel-nl/base/ip-mziesel-nl-ingress.yaml index 386c58e..2d4c128 100644 --- a/ip-mziesel-nl/base/ip-mziesel-nl-ingress.yaml +++ b/ip-mziesel-nl/base/ip-mziesel-nl-ingress.yaml @@ -2,11 +2,13 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ip-mzisel-nl-ingress + annotations: + nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: rules: - http: paths: - - path: /ip + - path: /ip(/|$)(.*) pathType: Prefix backend: service: