@@ -73,76 +73,20 @@ Considerations
73
73
required data and can be reached by your application(s), bring
74
74
down the old deployment.
75
75
76
- Examples
77
- --------
76
+ Procedure
77
+ ---------
78
78
79
- Select the desired tab based on the deployment configuration you
80
- want to scale:
79
+ To scale up your deployment, select the desired tab based on the deployment
80
+ configuration you want to scale:
81
81
82
82
.. tabs-deployments::
83
83
84
84
.. tab::
85
85
:tabid: repl
86
86
87
- Consider a replica set resource with the following
88
- |k8s-custom-resource|:
89
-
90
- .. literalinclude:: /includes/code-examples/yaml-files/example-replica-set.yaml
91
- :language: yaml
92
- :start-after: START-regular-replset
93
- :end-before: END-regular-replset
94
- :linenos:
95
- :emphasize-lines: 7
96
-
97
- To scale up this replica set and add more members:
98
-
99
- 1. Adjust the :setting:`spec.members` setting to the desired
100
- number of members:
101
-
102
- .. literalinclude:: /includes/code-examples/yaml-files/example-replica-set.yaml
103
- :language: yaml
104
- :start-after: START-scaled-replset
105
- :end-before: END-scaled-replset
106
- :linenos:
107
- :emphasize-lines: 7
108
-
109
- #. Reapply the configuration to |k8s|:
110
-
111
- .. code-block:: sh
112
-
113
- kubectl apply -f <repl-set-config>.yaml
87
+ .. include:: /includes/steps/scale-repset.rst
114
88
115
89
.. tab::
116
90
:tabid: shard
117
91
118
- Consider a sharded cluster resource with the following
119
- |k8s-custom-resource|:
120
-
121
- .. literalinclude:: /includes/code-examples/yaml-files/example-sharded-cluster.yaml
122
- :language: yaml
123
- :start-after: START-regular-sharded
124
- :end-before: END-regular-sharded
125
- :linenos:
126
- :emphasize-lines: 7-10
127
-
128
- To scale up this sharded cluster:
129
-
130
- 1. Adjust the following settings to the desired values:
131
-
132
- - :setting:`spec.shardCount`
133
- - :setting:`spec.mongodsPerShardCount`
134
- - :setting:`spec.mongosCount`
135
- - :setting:`spec.configServerCount`
136
-
137
- .. literalinclude:: /includes/code-examples/yaml-files/example-sharded-cluster.yaml
138
- :language: yaml
139
- :start-after: START-scaled-sharded
140
- :end-before: END-scaled-sharded
141
- :linenos:
142
- :emphasize-lines: 7-10
143
-
144
- #. Reapply the configuration to |k8s|:
145
-
146
- .. code-block:: sh
147
-
148
- kubectl apply -f <sharded-cluster-config>.yaml
92
+ .. include:: /includes/steps/scale-sharded.rst
0 commit comments