-
Notifications
You must be signed in to change notification settings - Fork 16
Added volumes and volume mounts variables to be able to use wordforms… #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 }} | ||
|
|
@@ -120,6 +127,11 @@ spec: | |
| - name: config-volume | ||
| configMap: | ||
| name: {{ include "manticoresearch.fullname" . }}-balancer-config | ||
| {{- range .Values.balancer.volumes }} | ||
| - name: {{ .name }} | ||
| configMap: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll look into this.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,6 +104,13 @@ spec: | |
| - name: config-volume | ||
| mountPath: {{ .Values.worker.config.path }} | ||
| subPath: manticore.conf | ||
| {{- range .Values.worker.volumeMounts }} | ||
fgroenendijk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - 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 }} | ||
|
|
@@ -132,6 +139,11 @@ spec: | |
| - name: config-volume | ||
| configMap: | ||
| name: {{ include "manticoresearch.fullname" . }}-worker-config | ||
| {{- range .Values.worker.volumes }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 }} | ||
|
|
||
There was a problem hiding this comment.
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