From ece6c2c88dd581dad769bc710f0d7ac18bf0e935 Mon Sep 17 00:00:00 2001 From: Sebastien Gerard Date: Wed, 11 Sep 2019 20:39:57 +0200 Subject: [PATCH] fix ingress configuration --- k8s/ingress-service.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/ingress-service.yaml b/k8s/ingress-service.yaml index 78708fc..8c7a629 100644 --- a/k8s/ingress-service.yaml +++ b/k8s/ingress-service.yaml @@ -4,16 +4,16 @@ metadata: name: ingress-service annotations: kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/rewrite-target: / + nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: rules: - http: paths: - - path: / + - path: /?(.*) backend: serviceName: client-cluster-ip-service servicePort: 3000 - - path: /api/ + - path: /api/?(.*) backend: serviceName: server-cluster-ip-service servicePort: 5000