Skip to content

Commit caad154

Browse files
(DOCSP-8462): AppDB support for offline mode (#183)
* (DOCSP-8462): AppDB support for offline mode * (DOCSP-8462): Copy & tech review * (DOCSP-8462): Source constant, version fixes * (DOCSP-8462): Final copy review
1 parent 7b206f9 commit caad154

File tree

7 files changed

+75
-20
lines changed

7 files changed

+75
-20
lines changed

conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
'k8s-op-short': 'Kubernetes Operator',
6262
'aagent': 'MongoDB Agent or legacy Automation Agent',
6363
'aagents': 'MongoDB Agents or legacy Automation Agents',
64-
'mdbagent': 'MongoDB Agent'
64+
'mdbagent': 'MongoDB Agent',
65+
'bndl-version': '4.2.2',
66+
'bndl-version-val': '``4.2.2-ent``'
67+
6568
}
6669

6770
rst_epilog = '\n'.join([

snooty.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ name = "k8s-operator"
44
aagent = "MongoDB Agent or legacy Automation Agent"
55
aagents = "MongoDB Agents or legacy Automation Agents"
66
k8s-op-short = "Kubernetes Operator"
7+
bndl-version = "4.2.2"
8+
bndl-version-val = "``4.2.2-ent``"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. admonition:: Deploy Ops Manager Resource Offline
2+
:class: note
3+
4+
To deploy |onprem| inside |k8s| without an Internet connection,
5+
omit this setting or leave the value empty. The |k8s-op-short|
6+
installs the :ref:`bundled MongoDB Enterprise
7+
<app-db-offline>` version {+bndl-version+} by default.

source/includes/steps-deploy-k8s-opsmgr.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,19 @@ content: |
188188
189189
* - | ``spec``
190190
| ``.applicationDatabase``
191-
| ``.``:setting:`~spec.version`
191+
| ``.``:opsmgrkube:`~spec.applicationDatabase.version`
192192
- string
193-
- Version of MongoDB that the :ref:`mms-application-database`
193+
- *Optional*.
194+
195+
Version of MongoDB that the :ref:`mms-application-database`
194196
should run.
195197
196198
The format should be ``X.Y.Z`` for the Community edition and
197199
``X.Y.Z-ent`` for the :product:`Enterprise edition
198200
</mongodb-enterprise-advanced>`.
199201
202+
.. include:: /includes/admonitions/note-deploy-om-offline.rst
203+
200204
To learn more about MongoDB versioning, see see
201205
:ref:`release-version-numbers` in the MongoDB Manual.
202206
- ``4.0.7``

source/reference/k8s-operator-om-specification.txt

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,24 @@ resources.
9292
:opsmgr:`Global Owner </reference/user-roles/#global-automation-admin-role>`
9393
role.
9494

95+
.. opsmgrkube:: spec.applicationDatabase.members
96+
97+
*Type*: integer
98+
99+
*Required*. Number of members in the :opsmgr:`Application Database
100+
</core/system-overview/#application-database>` replica set.
101+
102+
Optional |onprem| Resource Settings
103+
-----------------------------------
104+
105+
|onprem| resources can use the following settings:
106+
95107
.. opsmgrkube:: spec.applicationDatabase
96108

97109
*Type*: collection
98110

99-
*Required*. |onprem| :opsmgr:`Application Database </core/system-overview/#application-database>`
111+
|onprem| :opsmgr:`Application Database </core/system-overview/#application-database>`
100112
resource definition.
101-
102-
The following settings from the
103-
:ref:`replica set <replica-set-settings>` resource specification are
104-
required:
105-
106-
- ``spec.applicationDatabase.``:setting:`~spec.members`
107-
- ``spec.applicationDatabase.``:setting:`~spec.version`
108113

109114
The following settings from the
110115
:ref:`replica set <replica-set-settings>` resource specification are
@@ -124,7 +129,7 @@ resources.
124129
- ``spec.applicationDatabase.podSpec.``:setting:`~spec.podSpec.podAffinity`
125130
- ``spec.applicationDatabase.podSpec.``:setting:`~spec.podSpec.podAntiAffinityTopologyKey`
126131
- ``spec.applicationDatabase.podSpec.``:setting:`~spec.podSpec.nodeAffinity`
127-
132+
- :opsmgrkube:`spec.applicationDatabase.version`
128133

129134
Do not use the following settings from the
130135
:ref:`replica set <replica-set-settings>` resource specification:
@@ -135,10 +140,23 @@ resources.
135140
- :setting:`spec.opsManager.configMapRef.name`
136141
- :setting:`spec.credentials`
137142

138-
Optional |onprem| Resource Settings
139-
-----------------------------------
143+
.. opsmgrkube:: spec.applicationDatabase.version
140144

141-
|onprem| resources can use the following settings:
145+
*Type*: number
146+
147+
Version of MongoDB that is installed on the |onprem|
148+
:opsmgr:`Application Database
149+
</core/system-overview/#application-database>`.
150+
151+
Default value is {+bndl-version-val+}.
152+
153+
.. include:: /includes/admonitions/note-deploy-om-offline.rst
154+
155+
.. note::
156+
157+
If you update this value to a later version, consider setting
158+
:setting:`spec.featureCompatibilityVersion` to give yourself the
159+
option to downgrade if necessary.
142160

143161
.. opsmgrkube:: spec.backup.enabled
144162

source/release-notes.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ MongoDB Resource Changes
4141
|onprem| Resource Changes (Beta Release)
4242
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4343

44-
- Adds offline mode support for the application database. Bundles
45-
MongoDB Enterprise version 4.2.2 with the application database image.
46-
Internet access is not required to install the application database if
47-
:opsmgrkube:`spec.applicationDatabase.version` is set to ``4.2.2-ent``
48-
or omitted.
44+
- Adds :ref:`offline mode support <app-db-offline>` for the Application
45+
Database. Bundles MongoDB Enterprise version 4.2.2 with the
46+
Application Database image. Internet access is not required to install
47+
the application database if
48+
:opsmgrkube:`spec.applicationDatabase.version` is set to ``4.2.2-ent``
49+
or omitted.
4950
- Renames the ``spec.clusterName`` setting to
5051
:opsmgrkube:`spec.clusterDomain`.
5152
- |onprem| images for versions 4.2.6 and 4.2.7 are available.

source/tutorial/plan-om-resource.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,26 @@ different user:
138138
2. :manual:`Add a new user </reference/method/db.createUser/>` to
139139
the database using the ``mongo`` shell.
140140

141+
.. _app-db-offline:
142+
143+
Offline Deployments
144+
+++++++++++++++++++
145+
146+
The |k8s-op-short| bundles MongoDB Enterprise version {+bndl-version+}
147+
with the :opsmgr:`Application Database
148+
</core/system-overview/#application-database>` image to enable offline
149+
deployments of |onprem| resources.
150+
151+
To deploy |onprem| inside |k8s| without an Internet connection, omit the
152+
:opsmgrkube:`spec.applicationDatabase.version` setting or leave the
153+
value empty.
154+
155+
When you upgrade the |k8s-op-short|, the Application
156+
Database performs a rolling upgrade for new patch releases of MongoDB,
157+
such as from ``4.2.2-ent`` to ``4.2.3-ent``. However, the Application
158+
Database does not automatically upgrade between major versions,
159+
such as from ``4.2.2-ent`` to ``4.4.0-ent``.
160+
141161
.. _om-rsrc-backup:
142162

143163
Backup

0 commit comments

Comments
 (0)