Commit 0548b245 authored by Geoff Simmons's avatar Geoff Simmons

Example app chart (under "hello") supports TLS.

parent bdfdc0ec
......@@ -12,6 +12,13 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- range $host := .Values.ingress.hosts }}
{{- if hasKey $host "tls" }}
tls:
- hosts:
secretName: {{ $host.tls.secretName }}
{{- end }}
{{- end }}
rules:
{{- range $rule := .Values.ingress.rules }}
- host: {{ $rule.host }}
......
{{- range $host := .Values.ingress.hosts }}
{{- if hasKey $host "tls" }}
{{- if hasKey $host.tls "crt" }}
{{- if hasKey $host.tls "key" }}
apiVersion: v1
kind: Secret
metadata:
name: {{ $host.tls.secretName }}
labels:
app.kubernetes.io/name: {{ $host.tls.secretName }}
app.kubernetes.io/component: tlsSecret
{{- include "viking-ingress.labels" $ | nindent 4 }}
type: kubernetes.io/tls
data:
tls.crt: {{ $host.tls.crt | b64enc }}
tls.key: {{ $host.tls.key | b64enc }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment