@@ -52,28 +52,63 @@ content: |
5252 kubectl delete statefulset --cascade=false <ops-manager-statefulset>
5353
5454 ---
55- title : " Copy the highlighted fields of this |onprem| resource."
55+ title : " Copy the fields of this |onprem| resource."
5656stepnum : 3
5757level : 4
5858ref : copy-k8s-example
5959content : |
6060
61- The highlighted section:
61+ Copy Lines 9-31 of this example to:
6262
63- - Uses the |onprem| configuration setting
63+ - Use the |onprem| configuration setting
6464 ``automation.versions.source: local`` in
6565 :opsmgrkube:`spec.configuration` to enable Local Mode.
6666
67- - Defines a |k8s-pv| for the |onprem| StatefulSet to store the
67+ - Define a |k8s-pv| for the |onprem| StatefulSet to store the
6868 MongoDB installation archive. {+mdbagent+}\s running in MongoDB
6969 database resource containers that you create with the |k8s-op-short|
7070 download the installation archives from |onprem| instead of from the
7171 Internet.
7272
73- .. literalinclude:: /reference/k8s/example-opsmgr-local-mode.yaml
74- :language: yaml
73+ .. code-block:: yaml
7574 :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
77112
78113 ---
79114title : " Paste the copied example section into your existing |onprem| resource."
0 commit comments