Skip to content

Commit

Permalink
Add tls option for ingress
Browse files Browse the repository at this point in the history
Signed-off-by: Sören Brunk <[email protected]>
  • Loading branch information
sbrunk committed Apr 13, 2021
1 parent f35a374 commit ff67bdb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions helm/templates/common/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ spec:
{{- with .Values.common.ingress.host }}
host: {{ . }}
{{- end }}
{{- if .Values.common.ingress.tls.enabled }}
tls:
- secretName: {{ .Release.Name }}-tls
hosts:
- {{ .Values.common.ingress.host }}
{{ end }}
{{- if .Values.common.ingress.separateGrpcIngress }}
# Certain ingress controllers like nginx cannot serve HTTP 1 and GRPC with a single ingress because GRPC can only
# enabled on the ingress object, not on backend services (GRPC annotation is set on the ingress, not on the services).
Expand Down Expand Up @@ -169,5 +175,11 @@ spec:
{{- with .Values.common.ingress.host }}
host: {{ . }}
{{- end }}
{{- if .Values.common.ingress.tls.enabled }}
tls:
- secretName: {{ .Release.Name }}-tls
hosts:
- {{ .Values.common.ingress.host }}
{{ end }}
{{- end }}
{{- end }}
1 change: 0 additions & 1 deletion helm/values-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ flyteadmin:
ephemeral-storage: 200Mi
memory: 200Mi

configPath: /etc/flyte/config/*.yaml
service:
annotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "600"
Expand Down
2 changes: 2 additions & 0 deletions helm/values-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ common:
ingress:
# enable HMR route to flyteconsole for frontend development.
webpackHMR: true
tls:
enabled: false
flyteNamespaceTemplate: {}

#
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ common:
albSSLRedirect: false
# --- Ingress hostname
# host:
tls:
enabled: true
flyteNamespaceTemplate:
# --- Enable or disable creating Flyte namespace in template. Enable when using helm as template-engine only. Disable when using `helm install ...`.
enabled: false
Expand Down

0 comments on commit ff67bdb

Please sign in to comment.