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
12 changes: 12 additions & 0 deletions charts/manticoresearch/templates/manticore-balancer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ spec:
- name: config-volume
mountPath: {{ .Values.balancer.config.path }}
subPath: manticore.conf
{{- range .Values.balancer.volumeMounts }}
- name: {{ .name }}
mountPath: /imports/{{ .mountPath }}
{{- if .subPath }}
subPath: {{ .subPath }}
{{- end}}
{{- end }}
resources:
{{- toYaml .Values.balancer.resources | nindent 10 }}
{{- if or .Values.exporter.enabled .Values.serviceMonitor.enabled }}
Expand Down Expand Up @@ -120,6 +127,11 @@ spec:
- name: config-volume
configMap:
name: {{ include "manticoresearch.fullname" . }}-balancer-config
{{- range .Values.balancer.volumes }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably you forgot to add this variable to values.yml

- name: {{ .name }}
configMap:
Copy link
Contributor

Choose a reason for hiding this comment

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

Using the config map here is not a good idea. The ConfigMap size limit is 1 MB.

Wordforms can be pretty big, it's noticed in our documentation

Copy link
Author

Choose a reason for hiding this comment

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

I'll look into this.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, looked into this. I'm at a loss as how to solve this. Do you have a suggestion for me?

Copy link
Contributor

Choose a reason for hiding this comment

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

Mount volume as file and pass into creation table command link to mounted file as it described here

name: {{ .configMap.name }}
{{- end }}
{{- with .Values.balancer.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/manticoresearch/templates/manticore-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ spec:
- name: config-volume
mountPath: {{ .Values.worker.config.path }}
subPath: manticore.conf
{{- range .Values.worker.volumeMounts }}
- name: {{ .name }}
mountPath: /imports/{{ .mountPath }}
{{- if .subPath }}
subPath: {{ .subPath }}
{{- end}}
{{- end }}
resources:
{{- toYaml .Values.worker.resources | nindent 10 }}
{{- if or .Values.exporter.enabled .Values.serviceMonitor.enabled }}
Expand Down Expand Up @@ -132,6 +139,11 @@ spec:
- name: config-volume
configMap:
name: {{ include "manticoresearch.fullname" . }}-worker-config
{{- range .Values.worker.volumes }}
Copy link
Contributor

Choose a reason for hiding this comment

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

The same as for balancer

- name: {{ .name }}
configMap:
name: {{ .configMap.name }}
{{- end }}
{{- with .Values.worker.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/manticoresearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ balancer:
shutdown_timeout = 25s
auto_optimize = 0
}
volumeMounts: []
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down Expand Up @@ -131,6 +132,7 @@ worker:
shutdown_timeout = 25s
auto_optimize = 0
}
volumeMounts: []
resources: {}
# See comment on balancer.resources
nodeSelector: {}
Expand Down