Skip to content

Commit a261eb9

Browse files
authored
(DOCSP-35709) Corrects AtlasDeployment resource examples. (#11)
1 parent 29fc609 commit a261eb9

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

source/atlasdeployment-custom-resource.txt

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,17 @@ The following example shows the ``AtlasDeployment`` resource with a
105105
tags:
106106
- key: "environment",
107107
value: "production"
108-
providerSettings:
109-
instanceSizeName: M10
110-
providerName: AWS
111-
regionName: US_EAST_1
112-
mongoDBMajorVersion: "4.4"
108+
replicationSpecs:
109+
- zoneName: US-Zone
110+
numShards: 3
111+
regionsConfig:
112+
- regionName: US_CENTRAL
113+
providerName: GCP
114+
backingProviderName: GCP
115+
priority: 7
116+
electableSpecs:
117+
instanceSize: M10
118+
nodeCount: 3
113119
status:
114120
conditions:
115121
- lastTransitionTime: "2021-03-18T16:32:43Z"
@@ -151,28 +157,30 @@ specification configured for autoscaling multi-region {+clusters+}:
151157
tags:
152158
- key: "environment",
153159
value: "production"
154-
providerBackupEnabled: true
155-
providerSettings:
156-
autoScaling:
157-
compute:
158-
maxInstanceSize: M40
159-
minInstanceSize: M30
160-
instanceSizeName: M30
161-
providerName: GCP
160+
backupEnabled: true
162161
replicationSpecs:
163162
- numShards: 1
164163
regionsConfig:
165-
EASTERN_US:
166-
analyticsNodes: 0
167-
electableNodes: 1
168-
priority: 6
169-
readOnlyNodes: 0
170-
SOUTH_AMERICA_EAST_1:
171-
analyticsNodes: 0
172-
electableNodes: 2
173-
priority: 7
174-
readOnlyNodes: 0
175-
zoneName: Zone 1
164+
- regionName: EASTERN_US
165+
providerName: GCP
166+
autoscaling:
167+
disk:
168+
enabled: true
169+
compute:
170+
enabled: true
171+
scaleDownEnabled: true
172+
minInstanceSize: M30
173+
maxInstanceSize: M40
174+
analyticsSpecs:
175+
instanceSize: M30
176+
nodeCount: 1
177+
electableSpecs:
178+
instanceSize: M30
179+
nodeCount: 3
180+
priority: 7
181+
readOnlySpecs:
182+
instanceSize: M30
183+
nodeCount: 1
176184

177185
.. _ak8so-advanced-options:
178186

0 commit comments

Comments
 (0)