diff --git a/helm/main/templates/route.yaml b/helm/main/templates/route.yaml index b8756b7f..9a604b0f 100644 --- a/helm/main/templates/route.yaml +++ b/helm/main/templates/route.yaml @@ -36,3 +36,42 @@ spec: to: kind: Service name: {{ .Values.route.baseService }}-backend +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: {{ include "app.fullname" . }}-frontend-bcgov + annotations: + haproxy.router.openshift.io/balance: roundrobin + haproxy.router.openshift.io/disable_cookies: 'true' + haproxy.router.openshift.io/timeout: 180s +spec: + {{- if .Values.route.bcgovHost }} + host: {{ .Values.route.bcgovHost }} + {{- end }} + tls: + insecureEdgeTerminationPolicy: Redirect + termination: edge + to: + kind: Service + name: {{ .Values.route.baseService }}-frontend +--- +apiVersion: route.openshift.io/v1 +kind: Route +metadata: + name: {{ include "app.fullname" . }}-backend-bcgov + annotations: + haproxy.router.openshift.io/balance: roundrobin + haproxy.router.openshift.io/disable_cookies: 'true' + haproxy.router.openshift.io/timeout: 180s +spec: + {{- if .Values.route.bcgovHost }} + host: {{ .Values.route.bcgovHost }} + {{- end }} + tls: + insecureEdgeTerminationPolicy: Redirect + termination: edge + path: "/api" + to: + kind: Service + name: {{ .Values.route.baseService }}-backend \ No newline at end of file diff --git a/helm/main/values-dev.yaml b/helm/main/values-dev.yaml index 249228b0..cca163c9 100644 --- a/helm/main/values-dev.yaml +++ b/helm/main/values-dev.yaml @@ -22,6 +22,7 @@ fullnameOverride: strdss-dev route: host: dev-strdata.apps.silver.devops.gov.bc.ca + bcgovHost: dev.strdata.gov.bc.ca baseService: strdss-dev frontend: diff --git a/helm/main/values-prod.yaml b/helm/main/values-prod.yaml index df4236a3..3a13e35e 100644 --- a/helm/main/values-prod.yaml +++ b/helm/main/values-prod.yaml @@ -23,6 +23,7 @@ fullnameOverride: strdss-prod route: host: prod-strdata.apps.silver.devops.gov.bc.ca + bcgovHost: strdata.gov.bc.ca baseService: strdss-prod frontend: diff --git a/helm/main/values-test.yaml b/helm/main/values-test.yaml index 094fe41b..43fe7cc3 100644 --- a/helm/main/values-test.yaml +++ b/helm/main/values-test.yaml @@ -23,6 +23,7 @@ fullnameOverride: strdss-test route: host: test-strdata.apps.silver.devops.gov.bc.ca + bcgovHost: test.strdata.gov.bc.ca baseService: strdss-test frontend: diff --git a/helm/main/values-uat.yaml b/helm/main/values-uat.yaml index 7518e338..1ae4d40e 100644 --- a/helm/main/values-uat.yaml +++ b/helm/main/values-uat.yaml @@ -23,6 +23,7 @@ fullnameOverride: strdss-uat route: host: uat-strdata.apps.silver.devops.gov.bc.ca + bcgovHost: uat.strdata.gov.bc.ca baseService: strdss-uat frontend: