templates/ingress.yaml を更新
This commit is contained in:
@@ -18,6 +18,11 @@ spec:
|
||||
{{- if .Values.ingress.tls }}
|
||||
- hosts:
|
||||
- {{ .Values.ingress.hostname | quote }}
|
||||
{{- if .Values.wordpress.multisite.enabled }}
|
||||
{{- if .Values.wordpress.multisite.subdomains }}
|
||||
- "*.{{ .Values.wordpress.multisite.domain }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
secretName: {{ .Values.ingress.hostname | replace "." "-" }}-tls
|
||||
{{- end }}
|
||||
{{- if .Values.ingress.extraTls }}
|
||||
@@ -41,6 +46,20 @@ spec:
|
||||
name: {{ include "wordpress-nginx.fullname" . }}
|
||||
port:
|
||||
number: {{ $.Values.service.port }}
|
||||
{{- if .Values.wordpress.multisite.enabled }}
|
||||
{{- if .Values.wordpress.multisite.subdomains }}
|
||||
- host: "*.{{ .Values.wordpress.multisite.domain }}"
|
||||
http:
|
||||
paths:
|
||||
- path: {{ .Values.ingress.path }}
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "wordpress-nginx.fullname" . }}
|
||||
port:
|
||||
number: {{ $.Values.service.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range .Values.ingress.extraHosts }}
|
||||
- host: {{ .name | quote }}
|
||||
http:
|
||||
|
||||
Reference in New Issue
Block a user