Skip to content

Commit

Permalink
chore: bcgov route
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Apr 24, 2024
1 parent c987730 commit 03fbbfc
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions helm/main/templates/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions helm/main/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions helm/main/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions helm/main/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions helm/main/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 03fbbfc

Please sign in to comment.