File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
mongodb/charts/mongodb-sharded/templates/shard Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ MONGODB_SINGLE_NODE_PATH=${ISO_ROOT}/deploy/mongodb-1-node.yaml
3737MONGODB_THREE_NODE_PATH=${ISO_ROOT} /deploy/mongodb-3-nodes.yaml
3838MONGODB_SHARDED_SINGLE_NODE_PATH=${ISO_ROOT} /deploy/mongodb-sharded-1-node.yaml
3939MONGODB_SHARDED_THREE_NODE_PATH=${ISO_ROOT} /deploy/mongodb-sharded-3-nodes.yaml
40+ MONGODB_SHARDED_SINGLE_NODE_THREE_SHARDS_PATH=${ISO_ROOT} /deploy/mongodb-sharded-1-node-3-shards.yaml
41+ MONGODB_SHARDED_THREE_NODE_THREE_SHARDS_PATH=${ISO_ROOT} /deploy/mongodb-sharded-3-nodes-3-shards.yaml
4042
4143SOLUTION_ENV=' SOLUTION_ENV'
4244
@@ -199,7 +201,9 @@ function render_mongodb_sharded_yamls()
199201function mongodb_sharded_yamls()
200202{
201203 render_mongodb_sharded_yamls " ${MONGODB_SHARDED_SINGLE_NODE_PATH} " 1 1
202- render_mongodb_sharded_yamls " ${MONGODB_SHARDED_THREE_NODE_PATH} " 1 3
204+ render_mongodb_sharded_yamls " ${MONGODB_SHARDED_THREE_NODE_PATH} " 1 3
205+ render_mongodb_sharded_yamls " ${MONGODB_SHARDED_SINGLE_NODE_THREE_SHARDS_PATH} " 3 1
206+ render_mongodb_sharded_yamls " ${MONGODB_SHARDED_THREE_NODE_THREE_SHARDS_PATH} " 3 3
203207}
204208
205209function gen_manifest_yaml()
Original file line number Diff line number Diff line change @@ -374,7 +374,9 @@ spec:
374374 {{- end }}
375375 {{- if $.Values.shardsvr.persistence.selector }}
376376 selector :
377- {{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
377+ matchLabels :
378+ shard : ' {{ $i }}'
379+ {{ toYaml $.Values.shardsvr.persistence.selector.matchLabels | indent 12 }}
378380 {{- end }}
379381 resources :
380382 requests :
You can’t perform that action at this time.
0 commit comments