Skip to content

Commit 76cd4ad

Browse files
(DOCSP-13807): Scopes correction
1 parent 8dfe943 commit 76cd4ad

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

source/tutorial/plan-k8s-op-considerations.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Operator in Different Namespace Than Resources
122122
You scope the |k8s-op-short| to a namespace. The |k8s-op-short| watches
123123
|onprem| and |k8s-mdbrscs| in the |k8s-ns| you specify.
124124

125-
You must use ``helm`` to install the |k8s-op-short| with this scope.
125+
You can use ``helm`` to install the |k8s-op-short| with this scope.
126126
Follow the relevant ``helm`` :ref:`installation instructions <install-k8s-operator>`,
127127
but use the following command to set the namespace for the
128128
|k8s-op-short| to watch:
@@ -151,7 +151,7 @@ You scope the |k8s-op-short| to a cluster. The |k8s-op-short| watches
151151
You can deploy only one Operator with a cluster-wide scope per |k8s|
152152
cluster.
153153

154-
You must use ``helm`` to install the |k8s-op-short| with this scope.
154+
You can use ``helm`` to install the |k8s-op-short| with this scope.
155155
Follow the relevant ``helm``
156156
:ref:`installation instructions <install-k8s-operator>`, but make the
157157
following adjustments:
@@ -170,7 +170,13 @@ following adjustments:
170170
.. code-block:: sh
171171

172172
helm template --set namespace=<namespace> \
173-
helm_chart --show-only templates/database-roles.yaml | kubectl apply -f -
173+
helm_chart --show-only templates/database-roles.yaml | kubectl
174+
apply -f -
175+
176+
If you install a cluster-wide |k8s-op-short| without ``helm``, ensure
177+
that ``spec.template.spec.containers.name.env.name: WATCH_NAMESPACE`` is
178+
set to ``*`` in :gh:`mongodb-enterprise.yaml
179+
</mongodb/mongodb-enterprise-kubernetes/blob/master/mongodb-enterprise.yaml>`.
174180

175181
Customize the CustomResourceDefinitions that the |k8s-op-short| Watches
176182
-----------------------------------------------------------------------

0 commit comments

Comments
 (0)