File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 9292 - name : config-volume
9393 mountPath : {{ .Values.balancer.config.path }}
9494 subPath : manticore.conf
95+ {{- range .Values.balancer.volumeMounts }}
96+ - name : {{ .name }}
97+ mountPath : {{ .mountPath }}
98+ {{- if .subPath }}
99+ subPath : {{ .subPath }}
100+ {{- end}}
101+ {{- end }}
95102 resources :
96103 {{- toYaml .Values.balancer.resources | nindent 10 }}
97104 {{- if or .Values.exporter.enabled .Values.serviceMonitor.enabled }}
@@ -120,6 +127,11 @@ spec:
120127 - name : config-volume
121128 configMap :
122129 name : {{ include "manticoresearch.fullname" . }}-balancer-config
130+ {{- range .Values.balancer.volumes }}
131+ - name : {{ .name }}
132+ configMap :
133+ name : {{ .configMap.name }}
134+ {{- end }}
123135 {{- with .Values.balancer.nodeSelector }}
124136 nodeSelector :
125137 {{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ spec:
104104 - name : config-volume
105105 mountPath : {{ .Values.worker.config.path }}
106106 subPath : manticore.conf
107+ {{- range .Values.worker.volumeMounts }}
108+ - name : {{ .name }}
109+ mountPath : {{ .mountPath }}
110+ {{- if .subPath }}
111+ subPath : {{ .subPath }}
112+ {{- end}}
113+ {{- end }}
107114 resources :
108115 {{- toYaml .Values.worker.resources | nindent 10 }}
109116 {{- if or .Values.exporter.enabled .Values.serviceMonitor.enabled }}
@@ -132,6 +139,11 @@ spec:
132139 - name : config-volume
133140 configMap :
134141 name : {{ include "manticoresearch.fullname" . }}-worker-config
142+ {{- range .Values.worker.volumes }}
143+ - name : {{ .name }}
144+ configMap :
145+ name : {{ .configMap.name }}
146+ {{- end }}
135147 {{- with .Values.worker.nodeSelector }}
136148 nodeSelector :
137149 {{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ balancer:
4747 shutdown_timeout = 25s
4848 auto_optimize = 0
4949 }
50+ volumeMounts : []
5051 resources : {}
5152 # We usually recommend not to specify default resources and to leave this as a conscious
5253 # choice for the user. This also increases chances charts run on environments with little
@@ -124,13 +125,15 @@ worker:
124125 listen = $hostname:9315-9415:replication
125126 node_address = $hostname
126127 binlog_path = /var/lib/manticore
128+ log = /dev/stdout
127129 query_log = /dev/stdout
128130 query_log_format = sphinxql
129131 pid_file = /var/run/manticore/searchd.pid
130132 data_dir = /var/lib/manticore
131133 shutdown_timeout = 25s
132134 auto_optimize = 0
133135 }
136+ volumeMounts : []
134137 resources : {}
135138 # See comment on balancer.resources
136139 nodeSelector : {}
You can’t perform that action at this time.
0 commit comments