@@ -155,49 +155,62 @@ Setting the namespace ensures that:
155
155
Cluster-Wide Scope
156
156
~~~~~~~~~~~~~~~~~~
157
157
158
- You scope the |k8s-op-short| to a cluster. The |k8s-op-short| watches
158
+ You scope the |k8s-op-short| to a cluster. The |k8s-op-short| watches
159
159
|onprem| and |k8s-mdbrscs| in all |k8s-nss| in the |k8s| cluster.
160
160
161
161
.. important::
162
162
163
- You can deploy only one Operator with a cluster-wide scope per |k8s|
163
+ You can deploy only one Operator with a cluster-wide scope per |k8s|
164
164
cluster.
165
165
166
- You must use ``helm`` to install the |k8s-op-short| with this scope.
167
- Follow the relevant ``helm`` :ref:`installation instructions <install-k8s-operator>`,
168
- but make the following adjustments:
166
+ You must use ``helm`` to install the |k8s-op-short| with this scope.
167
+ Follow the relevant ``helm``
168
+ :ref:`installation instructions <install-k8s-operator>`, but make the
169
+ following adjustments:
169
170
170
- 1. Use the following command to set the |k8s-op-short| to watch all
171
- namespaces :
171
+ 1. To set the |k8s-op-short| to watch all namespaces, Invoke the
172
+ following command :
172
173
173
174
.. code-block:: sh
174
175
175
- helm template --set operator.watchNamespace=* \
176
+ helm template --set operator.watchNamespace=* \
176
177
helm_chart | kubectl apply -f -
177
178
178
- 2. Create the required service accounts for each namespace where you
179
+ 2. Create the required service accounts for each namespace where you
179
180
want to deploy |onprem| and |k8s-mdbrscs|:
180
181
181
- .. code-block:: sh
182
-
183
- helm template --set namespace=<namespace> \
184
- helm_chart -x templates/database-roles.yaml | kubectl apply -f -
182
+ .. tabs::
183
+
184
+ .. tab:: Helm v2
185
+ :tabid: helm2
186
+
187
+ .. code-block:: sh
188
+
189
+ helm template --set namespace=<namespace> \
190
+ helm_chart -x templates/database-roles.yaml | kubectl apply -f -
191
+
192
+ .. tab:: Helm v3
193
+ :tabid: helm3
194
+
195
+ .. code-block:: sh
196
+
197
+ helm template --set namespace=<namespace> \
198
+ helm_chart --show-only templates/database-roles.yaml | kubectl apply -f -
185
199
186
200
Customize the CustomResourceDefinitions the |k8s-op-short| Watches
187
201
------------------------------------------------------------------
188
202
189
- Earlier versions of the |k8s-op-short| would crash on start up if
190
- any one of the MongoDB |k8s-crds| was not present in the cluster.
191
- For instance, you had to install the CustomResourceDefinition for
192
- |onprem| even if you did not plan to deploy it with the |k8s-op-short|.
203
+ Earlier versions of the |k8s-op-short| would crash on start up if any
204
+ one of the MongoDB |k8s-crds| was not present in the cluster. For
205
+ instance, you had to install the CustomResourceDefinition for |onprem|
206
+ even if you did not plan to deploy it with the |k8s-op-short|.
193
207
194
- You can now specify which custom resources you want the
195
- |k8s-op-short| to watch. This allows you to install the
196
- CustomResourceDefinition for only the resources that you want the
197
- |k8s-op-short| to manage.
208
+ You can now specify which custom resources you want the |k8s-op-short|
209
+ to watch. This allows you to install the CustomResourceDefinition for
210
+ only the resources that you want the |k8s-op-short| to manage.
198
211
199
- You must use ``helm`` to configure the |k8s-op-short| to watch only the
200
- custom resources you specify. Follow the relevant ``helm``
212
+ You must use ``helm`` to configure the |k8s-op-short| to watch only the
213
+ custom resources you specify. Follow the relevant ``helm``
201
214
:ref:`installation instructions <install-k8s-operator>`,
202
215
but make the following adjustments:
203
216
0 commit comments