mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 14:57:31 +08:00
* Move charts from upstreamed folder to bitnami Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Remove root .helmignore Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Bump charts version Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Remove file added by error Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Update Chart.yaml
46 lines
1.4 KiB
YAML
Executable File
46 lines
1.4 KiB
YAML
Executable File
{{- if .Values.ingress.enabled }}
|
|
apiVersion: {{ template "wordpress.ingress.apiVersion" . }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ template "wordpress.fullname" . }}
|
|
labels: {{- include "wordpress.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- if .Values.ingress.certManager }}
|
|
kubernetes.io/tls-acme: "true"
|
|
{{- end }}
|
|
{{- if .Values.ingress.annotations }}
|
|
{{- include "wordpress.tplValue" (dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
{{- if .Values.ingress.hostname }}
|
|
- host: {{ .Values.ingress.hostname }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: {{ template "wordpress.fullname" . }}
|
|
servicePort: http
|
|
{{- end }}
|
|
{{- range .Values.ingress.extraHosts }}
|
|
- host: {{ .name }}
|
|
http:
|
|
paths:
|
|
- path: {{ default "/" .path }}
|
|
backend:
|
|
serviceName: {{ template "wordpress.fullname" $ }}
|
|
servicePort: http
|
|
{{- end }}
|
|
{{- if or .Values.ingress.tls .Values.ingress.extraTls }}
|
|
tls:
|
|
{{- if .Values.ingress.tls }}
|
|
- hosts:
|
|
- {{ .Values.ingress.hostname }}
|
|
secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.extraTls }}
|
|
{{- toYaml .Values.ingress.extraTls | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|