From 1caa46eb8caea7135591a759c0b47a2ce646e26f Mon Sep 17 00:00:00 2001 From: Leandro Beretta Date: Wed, 2 Nov 2022 14:16:42 -0300 Subject: [PATCH] support for www --- openscore-core/k8s/base/ingress.yaml | 10 ++++++++++ .../k8s/overlays/production/ingress-patch.yaml | 1 + openscore-ui/k8s/base/ingress.yaml | 10 ++++++++++ .../k8s/overlays/production/ingress-patch.yaml | 1 + 4 files changed, 22 insertions(+) diff --git a/openscore-core/k8s/base/ingress.yaml b/openscore-core/k8s/base/ingress.yaml index 0c4b382..19df7d5 100644 --- a/openscore-core/k8s/base/ingress.yaml +++ b/openscore-core/k8s/base/ingress.yaml @@ -9,6 +9,16 @@ spec: ingressClassName: nginx rules: - host: rhopenscore.com + http: + paths: + - path: /api/rest + pathType: Prefix + backend: + service: + name: openscore-core + port: + number: 8080 + - host: www.rhopenscore.com http: paths: - path: /api/rest diff --git a/openscore-core/k8s/overlays/production/ingress-patch.yaml b/openscore-core/k8s/overlays/production/ingress-patch.yaml index d8cf1a2..5fd0746 100644 --- a/openscore-core/k8s/overlays/production/ingress-patch.yaml +++ b/openscore-core/k8s/overlays/production/ingress-patch.yaml @@ -9,4 +9,5 @@ spec: tls: - hosts: - rhopenscore.com + - www.rhopenscore.com secretName: tls-core \ No newline at end of file diff --git a/openscore-ui/k8s/base/ingress.yaml b/openscore-ui/k8s/base/ingress.yaml index 5193850..d21122b 100644 --- a/openscore-ui/k8s/base/ingress.yaml +++ b/openscore-ui/k8s/base/ingress.yaml @@ -9,6 +9,16 @@ spec: ingressClassName: nginx rules: - host: rhopenscore.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: openscore-ui + port: + number: 3000 + - host: www.rhopenscore.com http: paths: - path: / diff --git a/openscore-ui/k8s/overlays/production/ingress-patch.yaml b/openscore-ui/k8s/overlays/production/ingress-patch.yaml index 06b27cc..009b27b 100644 --- a/openscore-ui/k8s/overlays/production/ingress-patch.yaml +++ b/openscore-ui/k8s/overlays/production/ingress-patch.yaml @@ -9,4 +9,5 @@ spec: tls: - hosts: - rhopenscore.com + - www.rhopenscore.com secretName: tls-ui \ No newline at end of file