Skip to content

Commit

Permalink
Merge pull request #226 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: bcgov route
  • Loading branch information
ychung-mot authored Apr 24, 2024
2 parents 2ac0ee0 + 03fbbfc commit fdc8517
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 fdc8517

Please sign in to comment.