Skip to content

Commit

Permalink
Fix ingress creation for DNS enabled tenant (minio#1930)
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 authored Jan 5, 2024
1 parent 64cb15e commit e0a5316
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 e0a5316

Please sign in to comment.