@@ -5,31 +5,44 @@ inherit:
5
5
file : steps-configure-kubectl-namespace.yaml
6
6
ref : configure-kubectl-namespace
7
7
---
8
- title : " Create a secret for your certificates."
8
+ title : " Create secrets for your certificates."
9
9
stepnum : 2
10
10
ref : create-cert-secret
11
11
content : |
12
12
13
- Once you have your |tls| certificate and Private Key, run the
14
- following command to store the certificates in a |k8s- secret|:
13
+ .. include:: /includes/facts/fact-if-use-vault.rst
14
+ .. include:: /includes/facts/fact-learn-more- secret-storage.rst
15
15
16
- .. code-block:: sh
16
+ a. Once you have your |tls| certificates and private keys, run the
17
+ following command to create a |k8s-secret| that stores |onprem|\'s
18
+ |tls| certificate:
19
+
20
+ .. code-block:: sh
21
+
22
+ kubectl create secret tls <prefix>-<metadata.name>-cert \
23
+ --cert=<om-tls-cert> \
24
+ --key=<om-tls-key>
25
+
26
+ b. Run the following command to create a new |k8s-secret| that stores
27
+ the application database's |tls| certificate:
17
28
18
- kubectl create secret tls <prefix>-<metadata.name>-cert \
19
- --cert=<om-tls-cert> \
20
- --key=<om-tls-key>
29
+ .. code-block:: sh
30
+
31
+ kubectl create secret tls <prefix>-<metadata.name>-db-cert \
32
+ --cert=<appdb-tls-cert> \
33
+ --key=<appdb-tls-key>
21
34
22
- .. include:: /includes/facts/fact-if-use-vault.rst
23
35
---
24
- title : " If necessary, validate your TLS Certificate ."
36
+ title : " If necessary, validate your TLS certificates ."
25
37
stepnum : 3
26
38
ref : validate-tls-cert
27
39
content : |
28
40
29
- If your |tls| certificate is signed by a Custom Certificate
41
+ If your |onprem| |tls| certificate or your application database
42
+ |tls| certificate is signed by a Custom Certificate
30
43
Authority, you must provide a :abbr:`CA (Certificate Authority)`
31
- certificate to validate the |tls| certificate. To validate the
32
- |tls| certificate, create a |k8s-configmap| to hold the
44
+ certificate to validate the |tls| certificate(s) . To validate the
45
+ |tls| certificate(s) , create a |k8s-configmap| to hold the
33
46
:abbr:`CA (Certificate Authority)` certificate:
34
47
35
48
.. warning::
@@ -41,10 +54,15 @@ content: |
41
54
42
55
.. important::
43
56
44
- The |k8s-op-short| requires that the certificate is named
45
- ``mms-ca.crt`` in the ConfigMap.
57
+ The |k8s-op-short| requires that:
58
+
59
+ - Your |onprem| certificate is named ``mms-ca.crt`` in the
60
+ ConfigMap.
61
+ - Your application database certficate is named ``ca-pem`` in
62
+ the ConfigMap.
46
63
47
- a. Obtain the entire |tls| certificate chain from
64
+ a. Obtain the entire |tls| certificate chain for both |onprem| and
65
+ the application database from
48
66
``downloads.mongodb.com``. The following ``openssl`` command
49
67
outputs each certificate in the chain to your current working
50
68
directory, in ``.crt`` format:
@@ -55,33 +73,48 @@ content: |
55
73
-connect downloads.mongodb.com:443 -servername downloads.mongodb.com < /dev/null \
56
74
| awk '/BEGIN/,/END/{ if(/BEGIN/){a++}; out="cert"a".crt"; print >out}'
57
75
58
- #. Concatenate your |certauth|\'s certificate file with the
59
- entire |tls| certificate chain from ``downloads.mongodb.com`` that
76
+ #. Concatenate your |certauth|\'s certificate file for |onprem|
77
+ with the entire |tls| certificate chain from
78
+ ``downloads.mongodb.com`` that
60
79
you obtained in the previous step:
61
80
62
81
.. code-block:: sh
63
82
64
83
cat cert1.crt cert2.crt cert3.crt cert4.crt >> mms-ca.crt
65
- #. Create the |k8s-configmap|:
84
+ #. Concatenate your |certauth|\'s certificate file for the application
85
+ database with the entire |tls| certificate chain from
86
+ ``downloads.mongodb.com`` that
87
+ you obtained in the previous step:
88
+
89
+ .. code-block:: sh
90
+
91
+ cat cert1.crt cert2.crt cert3.crt cert4.crt >> ca-pem
92
+ #. Create the |k8s-configmap| for |onprem|:
66
93
67
94
.. code-block:: sh
68
95
69
96
kubectl create configmap om-http-cert-ca --from-file="mms-ca.crt"
70
97
98
+ #. Create the |k8s-configmap| for the application database:
99
+
100
+ .. code-block:: sh
101
+
102
+ kubectl create configmap ca --from-file="ca-pem"
103
+
71
104
---
72
105
title : " Copy the following example |onprem| |k8s| |k8s-obj|."
73
106
stepnum : 4
74
107
level : 4
75
108
ref : copy-k8s-example
76
109
content : |
77
110
78
- Change the highlighted settings to match your desired
79
- |onprem| configuration.
111
+ Change the highlighted settings to match your desired
112
+ |onprem| and application database configuration.
80
113
81
- .. literalinclude:: /reference/k8s/example-opsmgr-https.yaml
82
- :language: yaml
83
- :linenos:
84
- :emphasize-lines: 5,7-11,14-23,25-27
114
+ .. literalinclude:: /reference/k8s/example-opsmgr-https.yaml
115
+ :language: yaml
116
+ :linenos:
117
+ :emphasize-lines: 5,7-11,14-23,25-37
85
118
---
86
119
title : " Open your preferred text editor and paste the |k8s-obj| specification into a new text file."
87
120
stepnum : 5
@@ -162,12 +195,14 @@ content: |
162
195
| ``.tls``
163
196
| ``.``:opsmgrkube:`~spec.security.tls.ca`
164
197
- string
165
- - Name of the |k8s-configmap| you created to verify |tls|
198
+ - Name of the |k8s-configmap| you created to verify your
199
+ |onprem| |tls|
166
200
certificates signed using a Custom Certificate Authority.
167
201
168
202
.. important::
169
203
170
- This field is required if you signed your |tls|
204
+ This field is required if you signed your
205
+ |onprem| |tls|
171
206
certificates using a Custom Certificate Authority.
172
207
173
208
- ``om-http-cert-ca``
@@ -220,6 +255,41 @@ content: |
220
255
221
256
- .. include:: /includes/facts/fact-which-appdb-version.rst
222
257
258
+ * - | ``spec``
259
+ | ``.applicationDatabase``
260
+ | ``.security``
261
+ | ``.``:opsmgrkube:`~spec.applicationDatabase.security.certsSecretPrefix`
262
+ - string
263
+ - *Required*.
264
+
265
+ Text to prefix to the name of the secret that contains
266
+ the application database's |tls| certificates.
267
+ - ``appdb-prod``
268
+
269
+ * - | ``spec``
270
+ | ``.applicationDatabase``
271
+ | ``.security``
272
+ | ``.tls``
273
+ | ``.``:opsmgrkube:`~spec.applicationDatabase.security.tls.ca`
274
+ - string
275
+ - Name of the |k8s-configmap| you created to verify your
276
+ application database |tls|
277
+ certificates signed using a Custom Certificate Authority.
278
+
279
+ .. important::
280
+
281
+ This field is required if you signed your
282
+ application database |tls|
283
+ certificates using a Custom Certificate Authority.
284
+
285
+ - ``ca``
286
+
287
+ .. note::
288
+
289
+ The |k8s-op-short| mounts the |certauth| you add using the
290
+ :opsmgrkube:`spec.applicationDatabase.security.tls.ca` setting to
291
+ both the |onprem| and the Application Database pods.
292
+
223
293
---
224
294
title : " Configure Backup settings"
225
295
stepnum : 7
@@ -696,4 +766,5 @@ content: |
696
766
697
767
See :doc:`/reference/troubleshooting` for information about the
698
768
resource deployment statuses.
769
+
699
770
...
0 commit comments