|
17 | 17 | :language: sh
|
18 | 18 | :linenos:
|
19 | 19 |
|
20 |
| - b. Obtain credentials and save contexts to the current ``kubeconfig`` |
| 20 | + |
| 21 | + #. Set your default gcloud project: |
| 22 | + |
| 23 | + .. literalinclude:: /includes/code-examples/ops-manager-multi-cluster/code_snippets/0011_gcloud_set_current_project.sh |
| 24 | + :language: sh |
| 25 | + :linenos: |
| 26 | + |
| 27 | + |
| 28 | + #. Obtain credentials and save contexts to the current ``kubeconfig`` |
21 | 29 | file. By default, this file is located in the ``~/.kube/config`` directory
|
22 | 30 | and referenced by the ``$KUBECONFIG`` :ref:`environment variable <set-env-vars-om-mc>`.
|
23 | 31 |
|
|
31 | 39 | - ``$K8S_CLUSTER_1_CONTEXT_NAME``
|
32 | 40 | - ``$K8S_CLUSTER_2_CONTEXT_NAME``
|
33 | 41 |
|
34 |
| - c. Verify that ``kubectl`` has access to |k8s| clusters: |
| 42 | + #. Verify that ``kubectl`` has access to |k8s| clusters: |
35 | 43 |
|
36 | 44 | .. io-code-block::
|
37 | 45 | :copyable: true
|
|
45 | 53 | :language: sh
|
46 | 54 | :visible: false
|
47 | 55 |
|
48 |
| - d. Install |istio| service mesh to allow cross-cluster |dns| resolution |
| 56 | + #. Install |istio| service mesh to allow cross-cluster |dns| resolution |
49 | 57 | and network connectivity between |k8s| clusters:
|
50 | 58 |
|
51 | 59 | .. literalinclude:: /includes/code-examples/ops-manager-multi-cluster/code_snippets/0040_install_istio.sh
|
52 | 60 | :language: sh
|
53 | 61 | :linenos:
|
54 | 62 |
|
| 63 | + |
55 | 64 | .. step:: Create namespaces.
|
56 | 65 |
|
57 | 66 | .. note::
|
|
249 | 258 |
|
250 | 259 | .. step:: Install the |k8s-op-short| using the Helm chart.
|
251 | 260 |
|
| 261 | + a. Add and update the MongoDB Helm repository. Verify that the local Helm cache refers to the correct |k8s-op-short| version: |
| 262 | + |
| 263 | + .. io-code-block:: |
| 264 | + :copyable: true |
| 265 | + |
| 266 | + .. input:: /includes/code-examples/ops-manager-multi-cluster/code_snippets/0205_helm_configure_repo.sh |
| 267 | + :linenos: |
| 268 | + :language: sh |
| 269 | + |
| 270 | + .. output:: /includes/code-examples/ops-manager-multi-cluster/output/0205_helm_configure_repo.out |
| 271 | + :linenos: |
| 272 | + :language: sh |
| 273 | + :visible: false |
252 | 274 |
|
253 |
| - a. Install the |k8s-op-short| into the ``$OPERATOR_NAMESPACE``, configured to watch |
| 275 | + b. Install the |k8s-op-short| into the ``$OPERATOR_NAMESPACE``, configured to watch |
254 | 276 | ``$NAMESPACE`` and to manage three member |k8s| clusters. At this point
|
255 | 277 | in the procedure, :k8sdocs:`ServiceAccounts </tasks/configure-pod-container/configure-service-account/>`
|
256 | 278 | and :k8sdocs:`roles </reference/access-authn-authz/rbac/#role-and-clusterrole>`
|
|
272 | 294 | :language: sh
|
273 | 295 | :visible: false
|
274 | 296 |
|
275 |
| - b. Check the |k8s-op-short| deployment: |
| 297 | + c. Check the |k8s-op-short| deployment: |
276 | 298 |
|
277 | 299 | .. io-code-block::
|
278 | 300 | :copyable: true
|
|
0 commit comments