Skip to content

Commit

Permalink
add tls configuration on ingress template
Browse files Browse the repository at this point in the history
  • Loading branch information
Lusengeri committed Dec 5, 2024
1 parent e8b0e25 commit d0b411c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/templates/api/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ spec:
port:
number: 80

{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.host | quote }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ fullnameOverride: ifrcgo-alert-hub
ingress:
enabled: true
className: nginx
tls:
secretName:
# Needs to be defined at go-deploy
# host: alerthub-stage-api.ifrc.org

Expand Down
2 changes: 2 additions & 0 deletions helm/values-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ingress:
enabled: true
host: alert-hub-sandbox.ifrc.org
className: webapprouting.kubernetes.azure.com
tls:
secretName:

postgresql:
enabled: true
Expand Down
2 changes: 2 additions & 0 deletions helm/values-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ fullnameOverride: ifrcgo-alert-hub
ingress:
enabled: true
className: nginx
tls:
secretName:
# Needs to be defined at go-deploy
# host: alerthub-stage-api.ifrc.org

Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ingress:
enabled: false
host:
className:
tls:
secretName:

redis:
enabled: true
Expand Down

0 comments on commit d0b411c

Please sign in to comment.