Skip to content

Conversation

@fredleger
Copy link

This PR will allow to customize NodePorts used by quickwit services (searcher, indexer, metastore and control_plane only)

I did not add default values as it was not the case for the other values provided by the original chart (like .values.searcher.serviceType) and followed the same logic for documentation of values. Maybe this should be done more globally in another PR.

@fredleger
Copy link
Author

any update on this ?

@fmassot
Copy link
Contributor

fmassot commented Sep 6, 2025

Hi @fredleger
Thanks for the PR.
Just to understand the use case, why do you want to customize the NodePorts?

@fredleger
Copy link
Author

Yes the use case is to deploy in kubernetes on-premise where there is no LBs and we want to use internals ips and ports

targetPort: grpc
name: grpc
{{- if and (or (eq (.Values.searcher.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.searcher.grpcNodePort }}
nodePort: {{ .Values.searcher.restNodePort }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nodePort: {{ .Values.searcher.restNodePort }}
nodePort: {{ .Values.searcher.grpcNodePort }}

targetPort: rest
protocol: TCP
name: rest
{{- if and (or (eq (.Values.searcher.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.searcher.restNodePort }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we break this down so it's easier to read?

{{- $type := .Values.indexer.serviceType | default .Values.service.type }}
{{- if and (eq $type "NodePort") .Values.indexer.restNodePort }}
  nodePort: {{ .Values.indexer.restNodePort }}
{{- end }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants