Skip to content

Commit 3311ebe

Browse files
(DOCSP-7580): New field 'replicas' in MongodbOpsManager
1 parent 56b7aef commit 3311ebe

File tree

6 files changed

+69
-7
lines changed

6 files changed

+69
-7
lines changed

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

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ content: |
1010
1111
.. literalinclude:: /reference/k8s/example-opsmgr-minimal.yaml
1212
:language: yaml
13-
:emphasize-lines: 5-10,12-13
13+
:emphasize-lines: 5,7-11,13-14
1414
1515
---
1616
title: "Open your preferred text editor and paste the |k8s-obj| specification into a new text file."
@@ -44,6 +44,16 @@ content: |
4444
4545
- ``om``
4646
47+
* - :opsmgrkube:`spec.replicas`
48+
- number
49+
- Number of |onprem| instances to run in parallel.
50+
51+
The minimum valid value is ``1``.
52+
53+
.. include:: /includes/note-highly-available-om.rst
54+
55+
- ``1``
56+
4757
* - :opsmgrkube:`spec.version`
4858
- string
4959
- Version of |onprem| to be installed.
@@ -187,9 +197,48 @@ content: |
187197
.. code-block:: sh
188198
189199
kubectl get om -n <namespace> -o yaml -w
200+
201+
The command returns the following output under the ``status`` field
202+
while the resource deploys:
190203
191-
The ``-w`` flag means "watch". With the "watch" flag set, the output
192-
refreshes immediately when something changes.
204+
.. code-block:: yaml
205+
:copyable: false
206+
207+
status:
208+
applicationDatabase:
209+
lastTransition: "2019-11-15T19:48:01Z"
210+
message: AppDB Statefulset is not ready yet
211+
phase: Reconciling
212+
type: ""
213+
version: ""
214+
opsManager:
215+
lastTransition: "2019-11-15T19:48:01Z"
216+
message: Ops Manager is still waiting to start
217+
phase: Reconciling
218+
version: ""
219+
220+
After the resource completes the ``Reconciling`` phase, the command
221+
returns the following output under the ``status`` field:
222+
223+
.. code-block:: yaml
224+
:copyable: false
225+
226+
status:
227+
applicationDatabase:
228+
lastTransition: "2019-11-05T17:26:42Z"
229+
phase: Running
230+
type: ""
231+
version: 4.0.7
232+
opsManager:
233+
lastTransition: "2019-11-05T17:26:34Z"
234+
phase: Running
235+
replicas: 1
236+
url: http://om-test-svc.dev.svc.cluster.local:8080
237+
version: 4.2.0
238+
239+
The ``status.opsManager.url`` is the connection URL of the resource,
240+
which can be used to reach |onprem| from inside the |k8s|
241+
cluster.
193242
194243
If the deployment fails, see :doc:`/reference/troubleshooting`.
195244

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ resources.
6262

6363
*Required*. Name of the MongoDB |k8s| resource you are creating.
6464

65+
.. opsmgrkube:: spec.replicas
66+
67+
*Type*: number
68+
69+
*Required*. Number of |onprem| instances to run in parallel.
70+
71+
The minimum accepted value is ``1``.
72+
73+
.. include:: /includes/note-highly-available-om.rst
74+
6575
.. opsmgrkube:: spec.version
6676

6777
*Type*: number
@@ -134,7 +144,7 @@ Optional |onprem| Resource Settings
134144
*Type*: string
135145

136146
|k8s| assigns each |k8s-pod| a |fqdn|. The |k8s-op-short| calculates
137-
the |fqdn| for each |k8s-pod| using a provided ``clusterName``. |k8s|
147+
the |fqdn| for each |k8s-pod| using a provided ``clusterName``. |k8s|
138148
does not provide an |api| to query these hostnames.
139149

140150
.. opsmgrkube:: spec.configuration

source/reference/k8s/example-ops-manager.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: MongoDBOpsManager
33
metadata:
44
name: om
55
spec:
6+
replicas: 1
67
version: 4.2.0
78
adminCredentials: ops-manager-admin
89
configuration:
@@ -14,4 +15,4 @@ spec:
1415
version: 4.0.7
1516
persistent: true
1617
podSpec:
17-
cpu: '0.25'
18+
cpu: '0.25'

source/reference/k8s/example-opsmgr-minimal.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: MongoDBOpsManager
44
metadata:
55
name: <myopsmanager>
66
spec:
7+
replicas: 1
78
version: <opsmanagerversion>
89
adminCredentials: <adminusercredentials> # Should match metadata.name
910
# in the Kubernetes secret

source/release-notes.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Ops Manager Resource Changes (Alpha Release)
5353
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5454

5555
- Supports highly available :ref:`Ops Manager resources
56-
<k8s-om-specification>` by introducing the ``spec.replicas`` setting.
56+
<k8s-om-specification>` by introducing the :opsmgrkube:`spec.replicas`
57+
setting.
5758

5859
- Runs |k8s-pods| as a non-root user.
5960

source/tutorial/deploy-om-container.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To deploy an |onprem| resource you must:
4646
--from-literal=Username="<username>"
4747
--from-literal=Password="<password>"
4848
--from-literal=FirstName="<firstname>"
49-
--from-literal=LastName="<lastname>>"
49+
--from-literal=LastName="<lastname>"
5050
-n <namespace>
5151

5252
Considerations

0 commit comments

Comments
 (0)