@@ -52,28 +52,63 @@ content: |
52
52
kubectl delete statefulset --cascade=false <ops-manager-statefulset>
53
53
54
54
---
55
- title : " Copy the highlighted fields of this |onprem| resource."
55
+ title : " Copy the fields of this |onprem| resource."
56
56
stepnum : 3
57
57
level : 4
58
58
ref : copy-k8s-example
59
59
content : |
60
60
61
- The highlighted section:
61
+ Copy Lines 9-31 of this example to:
62
62
63
- - Uses the |onprem| configuration setting
63
+ - Use the |onprem| configuration setting
64
64
``automation.versions.source: local`` in
65
65
:opsmgrkube:`spec.configuration` to enable Local Mode.
66
66
67
- - Defines a |k8s-pv| for the |onprem| StatefulSet to store the
67
+ - Define a |k8s-pv| for the |onprem| StatefulSet to store the
68
68
MongoDB installation archive. {+mdbagent+}\s running in MongoDB
69
69
database resource containers that you create with the |k8s-op-short|
70
70
download the installation archives from |onprem| instead of from the
71
71
Internet.
72
72
73
- .. literalinclude:: /reference/k8s/example-opsmgr-local-mode.yaml
74
- :language: yaml
73
+ .. code-block:: yaml
75
74
:linenos:
76
- :emphasize-lines: 9-32
75
+
76
+ apiVersion: mongodb.com/v1
77
+ kind: MongoDBOpsManager
78
+ metadata:
79
+ name: ops-manager-localmode
80
+ spec:
81
+ replicas: 2
82
+ version: "5.0.0"
83
+ adminCredentials: ops-manager-admin-secret
84
+ configuration:
85
+ # this enables local mode in Ops Manager
86
+ automation.versions.source: local
87
+ statefulSet:
88
+ spec:
89
+ # the Persistent Volume Claim will be created for each Ops Manager Pod
90
+ volumeClaimTemplates:
91
+ - metadata:
92
+ name: mongodb-versions
93
+ spec:
94
+ accessModes: [ "ReadWriteOnce" ]
95
+ resources:
96
+ requests:
97
+ storage: "20Gi"
98
+ template:
99
+ spec:
100
+ containers:
101
+ - name: mongodb-ops-manager
102
+ volumeMounts:
103
+ - name: mongodb-versions
104
+ # this is the directory in each Pod where all MongoDB
105
+ # archives must be put
106
+ mountPath: /mongodb-ops-manager/mongodb-releases
107
+ backup:
108
+ enabled: false
109
+ applicationDatabase:
110
+ members: 3
111
+ persistent: true
77
112
78
113
---
79
114
title : " Paste the copied example section into your existing |onprem| resource."
0 commit comments