Skip to content

Commit

Permalink
Merge pull request #771 from DTS-STN/99999-changes-for-prod
Browse files Browse the repository at this point in the history
129199 - Ingress changes for service canada
  • Loading branch information
MarcoGoC authored Jun 20, 2023
2 parents cbf82d7 + cde3633 commit ed3bd9c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions helm/charts/eligibility-estimator/templates/prod_ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.ingress.prod_enabled -}}
{{- $fullName := include "fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: v1
items:
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
appgw.ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/appgw-ssl-certificate: {{ .Values.ingress.ssl_cert }}
name: {{ $fullName }}-prod
spec:
rules:
- host: {{ .Values.ingress.prod_url }}
http:
paths:
- backend:
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
path: /
pathType: ImplementationSpecific
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ service:
prometheus.io/path: /api/metrics
prometheus.io/port: "3000"
ingress:
prod_enabled: {{ requiredEnv "PROD_ENABLED" }}
ssl_cert: service_canada_ca
prod_url: {{ requiredEnv "SUB_DOMAIN" }}.{{ requiredEnv "BASE_DOMAIN" }}
enabled: true
annotations:
{{ if (eq .Environment.Name "prototype")}}
Expand Down

0 comments on commit ed3bd9c

Please sign in to comment.