From 856d1d9dda6dee5ed8934ff699bd6be95f315301 Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Mon, 28 Feb 2022 14:38:20 +0100 Subject: [PATCH] feat: #be configure ingresses for dev and stg --- .../kustomize/overlays/dev/kustomization.yaml | 16 ++++++++++++++++ .../kustomize/overlays/stg/kustomization.yaml | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/backend/kustomize/overlays/dev/kustomization.yaml b/backend/kustomize/overlays/dev/kustomization.yaml index 4c3b6aa..21a8272 100644 --- a/backend/kustomize/overlays/dev/kustomization.yaml +++ b/backend/kustomize/overlays/dev/kustomization.yaml @@ -21,3 +21,19 @@ secretGenerator: - url=postgres://db_user:db_pass@oetzi-database-service/db_name name: oetzi-database-credentials type: Opaque +patchesJSON6902: + - target: + group: networking.k8s.io + version: v1 + kind: Ingress + name: oetzi-webserver-ingress + patch: |- + - op: replace + path: /metadata/annotations/nginx.ingress.kubernetes.io~1rewrite-target + value: /$2 + - op: replace + path: /spec/rules/0/host + value: minikube.localhost + - op: replace + path: /spec/rules/0/http/paths/0/path + value: /oetzi(/|$)(.*) diff --git a/backend/kustomize/overlays/stg/kustomization.yaml b/backend/kustomize/overlays/stg/kustomization.yaml index 2f63251..527dde5 100644 --- a/backend/kustomize/overlays/stg/kustomization.yaml +++ b/backend/kustomize/overlays/stg/kustomization.yaml @@ -22,3 +22,19 @@ secretGenerator: - url=postgres://db_user:db_pass@oetzi-database-service/db_name name: oetzi-database-credentials type: Opaque +patchesJSON6902: + - target: + group: networking.k8s.io + version: v1 + kind: Ingress + name: oetzi-webserver-ingress + patch: |- + - op: replace + path: /metadata/annotations/nginx.ingress.kubernetes.io~1rewrite-target + value: /$2 + - op: replace + path: /spec/rules/0/host + value: kommul-dev.eurac.edu + - op: replace + path: /spec/rules/0/http/paths/0/path + value: /oetzi(/|$)(.*) -- GitLab