Files
deprecated-helm-charts/stable/wordpress/templates/ingress.yaml
T
Alex Tennant d6eeb169e9 [stable/wordpress] Allow more flexible TLS configuration. (#12875)
* Allow more flexible TLS configuration.

Signed-off-by: adtennant <alex@adtennant.co.uk>

* Removed unnecessary parameter in README.

Signed-off-by: adtennant <alex@adtennant.co.uk>
2019-04-15 00:54:01 -07:00

34 lines
911 B
YAML

{{- if .Values.ingress.enabled }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "wordpress.fullname" . }}
labels:
app: "{{ template "wordpress.fullname" . }}"
chart: "{{ template "wordpress.chart" . }}"
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
annotations:
{{- if .Values.ingress.certManager }}
kubernetes.io/tls-acme: "true"
{{- end }}
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .name }}
http:
paths:
- path: {{ default "/" .path }}
backend:
serviceName: "{{ template "wordpress.fullname" $ }}"
servicePort: http
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{ toYaml .Values.ingress.tls | indent 4 }}
{{- end }}
{{- end }}