Skip to content

Commit

Permalink
Merge pull request #83 from Sh4d1/services
Browse files Browse the repository at this point in the history
Add possibility to specify services type per service
  • Loading branch information
idrissneumann authored Jun 26, 2024
2 parents 172b111 + 836b81e commit 86f1b3d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.6.0
version: 0.6.1
appVersion: "v0.8.1"
keywords:
- quickwit
Expand Down
24 changes: 19 additions & 5 deletions charts/quickwit/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.searcher.serviceType | default .Values.service.type }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
Expand Down Expand Up @@ -80,7 +80,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.indexer.serviceType | default .Values.service.type }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
Expand Down Expand Up @@ -112,7 +112,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.metastore.serviceType | default .Values.service.type }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
Expand All @@ -136,8 +136,15 @@ metadata:
name: {{ include "quickwit.fullname" . }}-control-plane
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.control_plane.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.control_plane.serviceType | default .Values.service.type }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
Expand All @@ -162,8 +169,15 @@ metadata:
name: {{ include "quickwit.fullname" . }}-janitor
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.janitor.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.janitor.serviceType | default .Values.service.type }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
Expand Down
15 changes: 15 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ searcher:

serviceAnnotations: {}

# serviceType: ClusterIP

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -162,6 +164,8 @@ indexer:

serviceAnnotations: {}

# serviceType: ClusterIP

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -220,6 +224,8 @@ metastore:

serviceAnnotations: {}

# serviceType: ClusterIP

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -265,6 +271,10 @@ control_plane:

podAnnotations: {}

serviceAnnotations: {}

# serviceType: ClusterIP

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -313,6 +323,10 @@ janitor:

podAnnotations: {}

serviceAnnotations: {}

# serviceType: ClusterIP

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -457,6 +471,7 @@ prometheusRule:
# severity: warning

service:
# Service type configuration default for all Quickwit services
type: ClusterIP

# -- Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services)
Expand Down

0 comments on commit 86f1b3d

Please sign in to comment.