Skip to content

Commit

Permalink
Add *.s3 tls and dns record
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 5, 2023
1 parent 6335b3c commit d184f91
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions charts/ace/templates/ingress/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
dnsNames:
- "{{ .Values.global.platform.domain }}"
- "*.{{ .Values.global.platform.domain }}"
{{- if (index .Values "minio" "enabled") }}
- "*.s3.{{ .Values.global.platform.domain }}"
{{- end }}
usages:
- key agreement
- digital signature
Expand Down
4 changes: 0 additions & 4 deletions charts/ace/templates/ingress/ingress-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,4 @@ spec:
{{- if (index .Values "smtprelay" "enabled") }}
- 'smtprelay.{{ .Values.global.platform.domain }}'
{{- end }}
{{- if (index .Values "minio" "enabled") }}
- 's3.{{ .Values.global.platform.domain }}'
- 'minio.{{ .Values.global.platform.domain }}'
{{- end }}
{{- end }}
11 changes: 11 additions & 0 deletions charts/minio/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
tls:
- hosts:
- 's3.{{ .Values.ingress.domain }}'
- '*.s3.{{ .Values.ingress.domain }}'
- 'minio.{{ .Values.ingress.domain }}'
secretName: {{ default (printf "%s-cert" (include "minio.fullname" .)) .Values.minio.tls.secret.name }}
{{- end }}
Expand All @@ -79,6 +80,16 @@ spec:
number: {{ .Values.service.port }}
path: /
pathType: Prefix
- host: *.s3.{{ .Values.ingress.domain }}
http:
paths:
- backend:
service:
name: {{ include "minio.fullname" . }}
port:
number: {{ .Values.service.port }}
path: /
pathType: Prefix
- host: minio.{{ .Values.ingress.domain }}
http:
paths:
Expand Down

0 comments on commit d184f91

Please sign in to comment.