Skip to content

Commit

Permalink
Fix ingress creation for DNS enabled tenant
Browse files Browse the repository at this point in the history
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 minio#1796
  • Loading branch information
alistarle committed Jan 4, 2024
1 parent 64cb15e commit 51f4e0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions helm/tenant/templates/api-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,20 @@ spec:
{{- else }}
name: http-minio
{{- end }}
{{- if .Values.tenant.features.bucketDNS }}
- host: "*.{{ .Values.ingress.api.host }}"
http:
paths:
- path: {{ .Values.ingress.api.path }}
pathType: {{ .Values.ingress.api.pathType }}
backend:
service:
name: minio
port:
{{- if or .Values.tenant.certificate.requestAutoCert (not (empty .Values.tenant.certificate.externalCertSecret)) }}
name: https-minio
{{- else }}
name: http-minio
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 51f4e0d

Please sign in to comment.