Skip to content

Commit 67b813d

Browse files
Anthony Sansoneatsansone
authored andcommitted
(DOCSP-10343) Add Helm v3 support
1 parent 0b947f2 commit 67b813d

File tree

1 file changed

+36
-23
lines changed

1 file changed

+36
-23
lines changed

source/tutorial/plan-k8s-operator-install.txt

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -155,49 +155,62 @@ Setting the namespace ensures that:
155155
Cluster-Wide Scope
156156
~~~~~~~~~~~~~~~~~~
157157

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
159159
|onprem| and |k8s-mdbrscs| in all |k8s-nss| in the |k8s| cluster.
160160

161161
.. important::
162162

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|
164164
cluster.
165165

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:
169170

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:
172173

173174
.. code-block:: sh
174175

175-
helm template --set operator.watchNamespace=* \
176+
helm template --set operator.watchNamespace=* \
176177
helm_chart | kubectl apply -f -
177178

178-
2. Create the required service accounts for each namespace where you
179+
2. Create the required service accounts for each namespace where you
179180
want to deploy |onprem| and |k8s-mdbrscs|:
180181

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 -
185199

186200
Customize the CustomResourceDefinitions the |k8s-op-short| Watches
187201
------------------------------------------------------------------
188202

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|.
193207

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.
198211

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``
201214
:ref:`installation instructions <install-k8s-operator>`,
202215
but make the following adjustments:
203216

0 commit comments

Comments
 (0)