|
| 1 | +.. _migrate-to-new-tls-format: |
| 2 | + |
| 3 | +=================================================== |
| 4 | +Upgrade from |k8s-op-short| 1.12 with |tls| Enabled |
| 5 | +=================================================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +.. include:: /includes/styles/corrections.rst |
| 16 | + |
| 17 | +|k8s-op| 1.13 :v1.13:`introduced several changes |
| 18 | +</release-notes/#k8s-op-short>` to how it handles |tls| secrets for |
| 19 | +|onprem| and database deployments. |
| 20 | + |
| 21 | +If you installed |k8s-op-short| 1.12 or earlier and you secure access to |
| 22 | +your resources using |tls|, complete this task to upgrade to the latest |
| 23 | +|k8s-op-short| version and migrate your opaque |tls| secrets to |
| 24 | +:k8sdocs:`kubernetes.io/tls |
| 25 | +</concepts/configuration/secret/#tls-secrets>` type secrets without |
| 26 | +re-creating your MongoDB resources and incurring downtime. |
| 27 | + |
| 28 | +Considerations |
| 29 | +-------------- |
| 30 | + |
| 31 | +|k8s-op-short| can migrate your |tls| secrets when you |
| 32 | +upgrade from 1.12 or earlier to the latest version for as long as 1.12 |
| 33 | +is supported. After |k8s-op-short| 1.12 reaches End of Life (EOL), you |
| 34 | +might not be able to migrate your |tls| secrets automatically when you |
| 35 | +upgrade. |
| 36 | + |
| 37 | +Limitations |
| 38 | +----------- |
| 39 | + |
| 40 | +|k8s-op-short| doesn't migrate the following |tls| secret |
| 41 | +types: |
| 42 | + |
| 43 | +- |tls| secrets that contain X.509 certificates for internal |
| 44 | + server authentication |
| 45 | +- |tls| secrets that contain {+mdbagent+} X.509 certificates |
| 46 | + |
| 47 | +You must manually migrate these types of |tls| secrets from opaque to |
| 48 | +:k8sdocs:`kubernetes.io/tls |
| 49 | +</concepts/configuration/secret/#tls-secrets>` type secrets by creating |
| 50 | +new secrets that contain the relevant certificates and signing keys. To |
| 51 | +learn how to create these secrets, see the following resources: |
| 52 | + |
| 53 | +- :ref:`secure-tls` |
| 54 | +- :ref:`secure-internal-auth` |
| 55 | + |
| 56 | +Prerequisites |
| 57 | +------------- |
| 58 | + |
| 59 | +- Before you migrate your |tls| secrets and upgrade |k8s-op-short|, your |
| 60 | + CRDs must use the following fields to describe your |tls| secrets: |
| 61 | + |
| 62 | + - Application Database |tls| secrets: :opsmgrkube:`applicationDatabase.security.tls.secretRef.prefix` |
| 63 | + - |onprem| |tls| secrets: :opsmgrkube:`security.tls.secretRef.prefix` |
| 64 | + - Database resource |tls| secrets: :setting:`security.tls.secretRef.prefix` |
| 65 | + |
| 66 | + If your CRDs use any of the following fields to describe your |tls| |
| 67 | + secrets, you must first update your CRDs to use the fields listed |
| 68 | + above instead: |
| 69 | + |
| 70 | + - Application Database |tls| secrets: |
| 71 | + ``spec.applicationDatabase.security.tls.secretRef.name`` |
| 72 | + - |onprem| |tls| secrets: ``spec.security.tls.secretRef.name`` |
| 73 | + - Database resource |tls| secrets: ``spec.security.tls.secretRef.name`` |
| 74 | + |
| 75 | +- You must disable internal cluster and X.509 authentication before you |
| 76 | + upgrade |k8s-op-short| to its latest |
| 77 | + version. |
| 78 | + |
| 79 | + When the upgrade is complete, you can re-enable internal cluster and |
| 80 | + X.509 authentication. |
| 81 | + |
| 82 | +Procedure |
| 83 | +--------- |
| 84 | + |
| 85 | +.. include:: /includes/steps/migrate-to-new-tls-format.rst |
0 commit comments