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
37
37
MONGODB_THREE_NODE_PATH=${ISO_ROOT} /deploy/mongodb-3-nodes.yaml
38
38
MONGODB_SHARDED_SINGLE_NODE_PATH=${ISO_ROOT} /deploy/mongodb-sharded-1-node.yaml
39
39
MONGODB_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
40
42
41
43
SOLUTION_ENV=' SOLUTION_ENV'
42
44
@@ -199,7 +201,9 @@ function render_mongodb_sharded_yamls()
199
201
function mongodb_sharded_yamls()
200
202
{
201
203
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
203
207
}
204
208
205
209
function gen_manifest_yaml()
Original file line number Diff line number Diff line change @@ -374,7 +374,9 @@ spec:
374
374
{{- end }}
375
375
{{- if $.Values.shardsvr.persistence.selector }}
376
376
selector :
377
- {{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
377
+ matchLabels :
378
+ shard : ' {{ $i }}'
379
+ {{ toYaml $.Values.shardsvr.persistence.selector.matchLabels | indent 12 }}
378
380
{{- end }}
379
381
resources :
380
382
requests :
You can’t perform that action at this time.
0 commit comments