Skip to content

Commit

Permalink
chore: adding ingress for minio & adding PATH STYLE correct way
Browse files Browse the repository at this point in the history
  • Loading branch information
electrosenpai committed Sep 16, 2024
1 parent bde6932 commit b6b35fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ spec:
{{ if or .Values.global.s3.enabled .Values.minio.enabled }}
- name: LAGO_USE_AWS_S3
value: "true"
{{ if .Values.minio.enabled }}
{{- if .Values.minio.enabled }}
- name: LAGO_AWS_S3_PATH_STYLE
value: "true"
{{ end }}
{{- end }}
{{ if or .Values.global.s3.endpoint .Values.minio.endpoint }}
- name: LAGO_AWS_S3_ENDPOINT
value: {{ if .Values.minio.enabled }}
Expand Down
11 changes: 11 additions & 0 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
- hosts:
- {{ .Values.global.ingress.frontHostname }}
- {{ .Values.global.ingress.apiHostname }}
- {{ .Values.global.ingress.minioHostname }}
secretName: {{ .Release.Name }}-ingress-secret
rules:
- host: {{ .Values.global.ingress.frontHostname }}
Expand All @@ -35,4 +36,14 @@ spec:
name: {{ .Release.Name }}-api-svc
port:
number: {{ .Values.api.service.port }}
- host: {{ .Values.global.ingress.minioHostname }}
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: {{ .Values.minio.service.name }}
port:
number: {{ .Values.minio.service.port }}
{{ end }}

0 comments on commit b6b35fe

Please sign in to comment.