mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 14:23:13 +00:00
466429b958
Co-authored-by: houseme <housemecn@gmail.com>
38 lines
1004 B
YAML
38 lines
1004 B
YAML
{{- if eq .Values.ingress.className "contour" }}
|
|
apiVersion: projectcontour.io/v1
|
|
kind: HTTPProxy
|
|
metadata:
|
|
name: {{ include "rustfs.fullname" . }}-proxy
|
|
labels:
|
|
{{- include "rustfs.labels" . | nindent 4 }}
|
|
{{- with .Values.commonLabels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
{{- range .Values.ingress.hosts }}
|
|
virtualhost:
|
|
fqdn: {{ .host | quote }}
|
|
{{- if $.Values.ingress.tls.enabled }}
|
|
tls:
|
|
secretName: {{ include "rustfs.fullname" $ }}-tls
|
|
{{- end }}
|
|
routes:
|
|
- conditions:
|
|
{{- range .paths }}
|
|
- prefix: {{ .path }}
|
|
{{- end }}
|
|
services:
|
|
- name: {{ include "rustfs.fullname" $ }}-svc
|
|
port: {{ $.Values.service.console.port }}
|
|
loadBalancerPolicy:
|
|
strategy: Cookie
|
|
timeoutPolicy:
|
|
response: infinity
|
|
idle: 5m
|
|
{{- if $.Values.ingress.tls.enabled }}
|
|
permitInsecure: true
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|