@@ -5,31 +5,44 @@ inherit:
55 file : steps-configure-kubectl-namespace.yaml
66 ref : configure-kubectl-namespace
77---
8- title : " Create a secret for your certificates."
8+ title : " Create secrets for your certificates."
99stepnum : 2
1010ref : create-cert-secret
1111content : |
1212
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
1515
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:
1728
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>
2134
22- .. include:: /includes/facts/fact-if-use-vault.rst
2335 ---
24- title : " If necessary, validate your TLS Certificate ."
36+ title : " If necessary, validate your TLS certificates ."
2537stepnum : 3
2638ref : validate-tls-cert
2739content : |
2840
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
3043 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
3346 :abbr:`CA (Certificate Authority)` certificate:
3447
3548 .. warning::
@@ -41,10 +54,15 @@ content: |
4154
4255 .. important::
4356
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.
4663
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
4866 ``downloads.mongodb.com``. The following ``openssl`` command
4967 outputs each certificate in the chain to your current working
5068 directory, in ``.crt`` format:
@@ -55,33 +73,48 @@ content: |
5573 -connect downloads.mongodb.com:443 -servername downloads.mongodb.com < /dev/null \
5674 | awk '/BEGIN/,/END/{ if(/BEGIN/){a++}; out="cert"a".crt"; print >out}'
5775
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
6079 you obtained in the previous step:
6180
6281 .. code-block:: sh
6382
6483 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|:
6693
6794 .. code-block:: sh
6895
6996 kubectl create configmap om-http-cert-ca --from-file="mms-ca.crt"
7097
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+
71104 ---
72105title : " Copy the following example |onprem| |k8s| |k8s-obj|."
73106stepnum : 4
74107level : 4
75108ref : copy-k8s-example
76109content : |
77110
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.
80113
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
85118 ---
86119title : " Open your preferred text editor and paste the |k8s-obj| specification into a new text file."
87120stepnum : 5
@@ -162,12 +195,14 @@ content: |
162195 | ``.tls``
163196 | ``.``:opsmgrkube:`~spec.security.tls.ca`
164197 - 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|
166200 certificates signed using a Custom Certificate Authority.
167201
168202 .. important::
169203
170- This field is required if you signed your |tls|
204+ This field is required if you signed your
205+ |onprem| |tls|
171206 certificates using a Custom Certificate Authority.
172207
173208 - ``om-http-cert-ca``
@@ -220,6 +255,41 @@ content: |
220255
221256 - .. include:: /includes/facts/fact-which-appdb-version.rst
222257
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+
223293 ---
224294title : " Configure Backup settings"
225295stepnum : 7
@@ -696,4 +766,5 @@ content: |
696766
697767 See :doc:`/reference/troubleshooting` for information about the
698768 resource deployment statuses.
769+
699770 ...
0 commit comments