mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
27 lines
731 B
YAML
27 lines
731 B
YAML
{{- if .Values.gatewayApi.enabled -}}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ include "rustfs.fullname" . }}-route
|
|
spec:
|
|
parentRefs:
|
|
{{- if .Values.gatewayApi.existingGateway.name }}
|
|
- name: {{ .Values.gatewayApi.existingGateway.name }}
|
|
{{- if .Values.gatewayApi.existingGateway.namespace }}
|
|
namespace: {{ .Values.gatewayApi.existingGateway.namespace }}
|
|
{{- end }}
|
|
{{- else }}
|
|
- name: {{ include "rustfs.fullname" . }}-gateway
|
|
{{- end }}
|
|
hostnames:
|
|
- {{ .Values.gatewayApi.hostname }}
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: rustfs-svc
|
|
port: 9001
|
|
{{- end }}
|