@@ -12,64 +12,45 @@ Configure Kubernetes for Deploying MongoDB Resource
12
12
:depth: 1
13
13
:class: singlecol
14
14
15
- You can use the Kubernetes Operator to deploy MongoDB resources such as
15
+ You can use the |k8s-op-full| to deploy MongoDB resources such as
16
16
:k8s:`a replica set </tutorial/deploy-replica-set>`, :k8s:`a sharded
17
17
cluster </tutorial/deploy-sharded-cluster>`, or :k8s:`a standalone
18
- instance </tutorial/deploy-standalone>` using an `object
19
- <https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/>`__.
20
- |mms| can generate the YAML files you need to configure your Kubernetes
21
- environment for deploying a MongoDB Database resource.
18
+ instance </tutorial/deploy-standalone>` using an |k8s-obj|.
19
+ |mms| can generate the YAML files you need to configure your |k8s|
20
+ environment for deploying a MongoDB Database resource.
22
21
23
22
To generate the YAML files:
24
23
25
24
- :ref:`k8s-config-mdb-res-roles`
26
- - :ref:`k8s-config-mdb-res-nav`
25
+ - :ref:`Learn about the MongoDB Resource in Kubernetes < k8s-config-mdb-res-nav> `
27
26
- :ref:`k8s-config-mdb-res-create-procedure`
28
27
29
28
.. _k8s-config-mdb-res-roles:
30
29
31
- Verify Permissions
30
+ Verify Permissions
32
31
------------------
33
32
34
33
You must have one of the following roles to access the |mms| UI for
35
- setting up Kubernetes:
34
+ setting up |k8s|:
36
35
37
36
- :authrole:`Organization Owner`
38
37
- :authrole:`Project Owner`
39
38
- :authrole:`Project Data Access Admin`
40
39
41
- .. _k8s-config-mdb-res-nav:
42
-
43
- Navigate to the Kubernetes Setup Page in the |mms| UI
44
- -----------------------------------------------------
45
-
46
- To access the :guilabel:`Kubernetes Setup` page in the |mms| UI:
47
-
48
- .. include:: /includes/steps/k8s-setup-nav.rst
49
-
50
- If you are a :authrole:`Global Owner` or :authrole:`Organization
51
- Owner`, you can access the Kubernetes Setup page in the |mms| UI
52
- by doing the following also:
53
-
54
- .. include:: /includes/steps/k8s-setup-nav-global-org-owner.rst
55
-
56
40
.. _k8s-config-mdb-res-create-procedure:
57
41
58
- Set Up Kubernetes for a MongoDB Resource
42
+ Overview of MongoDB Resource in |k8s|
59
43
----------------------------------------
60
44
61
- The | k8s-op-full| requires a Kubernetes ConfigMap to create or link
62
- your |mms| project.
45
+ To create or link your |mms| project, the | k8s-op-full| requires that you
46
+ configure a |k8s| ConfigMap. Using the |k8s| ConfigMap, you can:
63
47
64
- .. cond:: onprem
48
+ - Connect to a HTTPS-enabled |mms| that is using a custom |certauth|, or
49
+ - Link to a |mms| project that isn't using a custom |certauth|.
65
50
66
- Using the Kubernetes ConfigMap, you can either connect to a
67
- HTTPS-enabled |mms| that is using a custom CA or link to a |mms|
68
- project that isn't using a custom CA.
69
-
70
- You can use the |mms| :guilabel:`Kubernetes Setup` page to
71
- automatically generate the ConfigMap. The generated YAML file for the
72
- ConfigMap looks similar to the following:
51
+ You can use the |mms| :guilabel:`Kubernetes Setup` page to automatically
52
+ generate the ConfigMap. The generated YAML file for the ConfigMap looks
53
+ similar to the following:
73
54
74
55
.. tabs::
75
56
@@ -92,7 +73,7 @@ ConfigMap looks similar to the following:
92
73
orgId: <your-org-id>
93
74
94
75
sslMMSCAConfigMap: <root-ca-configmap-name>
95
- sslRequireValidMMSServerCertificates: ‘ true’
76
+ sslRequireValidMMSServerCertificates: ' true'
96
77
97
78
.. tab:: Not Using a Custom CA
98
79
:tabid: link
@@ -112,25 +93,51 @@ ConfigMap looks similar to the following:
112
93
113
94
orgId: <your-org-id>
114
95
115
- You need to store your :ref:`Programmatic API Key <mms-prog-api-key>`
116
- as a Kubernetes secret to create or update Kubernetes `objects
117
- <https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/>`__
118
- in your |mms| project. A Kubernetes secret stores authentication
119
- credentials so only Kubernetes can access them.
96
+ To create or update |k8s-objs| in your |mms| project, configure your
97
+ :ref:`Programmatic API Key <mms-prog-api-key>` as a |k8s| secret.
98
+ The secret stores authentication credentials so only |k8s| can access them.
99
+
100
+ The following procedures provide the detailed steps.
101
+
102
+ .. _k8s-config-mdb-res-procedure:
103
+
104
+ Procedures
105
+ ------------
106
+
107
+ - :ref:`k8s-config-mdb-res-nav`
108
+ - :ref:`k8s-setup-custom-ca-configmap-om-settings`
109
+ - :ref:`k8s-generate-yaml`
110
+
111
+ .. _k8s-config-mdb-res-nav:
112
+
113
+ Navigate to the |k8s| Setup Page in the |mms| UI
114
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115
+
116
+ To access the :guilabel:`Kubernetes Setup` page in the |mms| UI:
117
+
118
+ .. include:: /includes/steps/k8s-setup-nav.rst
119
+
120
+ If you are a :authrole:`Global Owner` or :authrole:`Organization
121
+ Owner`, you can also access the :guilabel:`Kubernetes Setup` page in
122
+ the |mms| UI by following these steps:
123
+
124
+ .. include:: /includes/steps/k8s-setup-nav-global-org-owner.rst
125
+
126
+ .. _k8s-setup-custom-ca-configmap-om-settings:
120
127
121
- Setting up Template files and Configuration Parameters
122
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
128
+ Create a Secret, a ConfigMap, and |onprem| Settings for |k8s|
129
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123
130
124
- To generate the YAML files, you must do the following:
131
+ To create a secret, a ConfigMap file, and |onprem| settings for |k8s|:
125
132
126
133
.. include:: /includes/steps/k8s-setup-custom-ca.rst
127
134
128
- .. _k8s-config-mdb-res-procedure :
135
+ .. _k8s-generate-yaml :
129
136
130
- Generating the YAML Files
131
- ~~~~~~~~~~~~~~~~~~~~~~~~~
137
+ Generate the ConfigMap YAML Files
138
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132
139
133
- To setup Kubernetes for a MongoDB resource:
140
+ To generate the |k8s| configuration files for a MongoDB resource:
134
141
135
142
.. tabs::
136
143
0 commit comments