Skip to content

Commit e0a5316

Browse files
authored
Fix ingress creation for DNS enabled tenant (#1930)
Create an extra ingress rule for wildcard api host if dns feature is enabled. Need to configure the TLS block accordingly in values.yaml Fixes #1796
1 parent 64cb15e commit e0a5316

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

helm/tenant/templates/api-ingress.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,20 @@ spec:
3838
{{- else }}
3939
name: http-minio
4040
{{- end }}
41+
{{- if .Values.tenant.features.bucketDNS }}
42+
- host: "*.{{ .Values.ingress.api.host }}"
43+
http:
44+
paths:
45+
- path: {{ .Values.ingress.api.path }}
46+
pathType: {{ .Values.ingress.api.pathType }}
47+
backend:
48+
service:
49+
name: minio
50+
port:
51+
{{- if or .Values.tenant.certificate.requestAutoCert (not (empty .Values.tenant.certificate.externalCertSecret)) }}
52+
name: https-minio
53+
{{- else }}
54+
name: http-minio
55+
{{- end }}
56+
{{- end }}
4157
{{- end }}

0 commit comments

Comments
 (0)