Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions charts/quickwit/templates/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{{- if .Values.httproute.enabled -}}
{{- $fullname := include "quickwit.fullname" . }}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ $fullname }}
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{- include "quickwit.labels" . | nindent 4 }}
{{- with .Values.httproute.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httproute.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.httproute.parentRefs }}
parentRefs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httproute.hostnames }}
hostnames:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
{{- range .Values.httproute.rules }}
- matches:
{{- with .matches }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .filters }}
filters:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .timeouts }}
timeouts:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .backendRefs }}
backendRefs:
{{- range .backendRefs }}
- group: {{ .group | default "" | quote }}
kind: {{ .kind | default "Service" | quote }}
{{- if eq (.kind | default "Service") "Service" }}
name: {{ $fullname }}-{{ .name | default "searcher" }}
{{- else }}
name: {{ .name }}
{{- end }}
port: {{ .port }}
{{- if .weight }}
weight: {{ .weight }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
51 changes: 51 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -713,3 +713,54 @@ ingress:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

# HTTPRoute configuration for Gateway API (alternative to Ingress). Only enable this if you have Gateway API CRDs installed and a Gateway controller.
httproute:
enabled: false
# annotations: {}
# labels: {}
parentRefs: []
# - name: gateway-name
# namespace: gateway-namespace
# sectionName: http
hostnames:
- "*"
rules:
# Ingest and ES bulk endpoints to quickwit-indexer
- matches:
- path:
type: RegularExpression
value: /api/v1/.*/ingest
backendRefs:
- name: indexer
port: 7280
- matches:
- path:
type: PathPrefix
value: /api/v1/_elastic/bulk
backendRefs:
- name: indexer
port: 7280
- matches:
- path:
type: RegularExpression
value: /api/v1/_elastic/.*/_bulk
backendRefs:
- name: indexer
port: 7280
# Indexes API endpoints to quickwit-metastore
- matches:
- path:
type: PathPrefix
value: /api/v1/indexes
backendRefs:
- name: metastore
port: 7280
# Everything else to quickwit-searcher
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: searcher
port: 7280