Skip to content

Commit 0e833d8

Browse files
authored
(DOCSP-40970)(DOCSP-40956): Updated the AtlasDeployment CRD examples. (#102)
* (DOCSP-40970): Updated the AtlasDeployment CRD examples. * (DOCSP-40970): Incorporated Jose's feedback.
1 parent 05d8969 commit 0e833d8

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

source/includes/steps-ak8so-quick-start.yaml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ content: |
3838
3939
.. code-block:: sh
4040
41-
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/<version>/deploy/all-in-one.yaml
41+
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/v<version>/deploy/all-in-one.yaml
4242
4343
- If you want |ak8so| to watch only its |k8s-ns|, you must install
4444
the configuration files from the ``deploy/namespaced`` directory:
4545
4646
.. code-block:: sh
4747
48-
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/<version>/deploy/namespaced/crds.yaml
48+
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/v<version>/deploy/namespaced/crds.yaml
4949
5050
.. code-block:: sh
5151
52-
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/<version>/deploy/namespaced/namespaced-config.yaml
52+
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/v<version>/deploy/namespaced/namespaced-config.yaml
5353
5454
---
5555

@@ -113,8 +113,10 @@ title: "Create the ``AtlasDeployment`` custom resource."
113113
ref: create-atlasdeployment
114114
content: |
115115
116-
Run the following command to create an
116+
Run one of the following commands to create an
117117
:ref:`atlasdeployment-custom-resource` and create a {+cluster+}:
118+
119+
**Paid Tier:**
118120
119121
.. code-block:: sh
120122
@@ -132,18 +134,43 @@ content: |
132134
tags:
133135
- key: "environment"
134136
value: "production"
135-
replicationSpecs:
136-
- zoneName: US-Zone
137-
regionConfigs:
138-
- electableSpecs:
139-
instanceSize: M10
140-
nodeCount: 3
141-
providerName: AWS
142-
regionName: US_EAST_1
143-
priority: 7
137+
replicationSpecs:
138+
- zoneName: US-Zone
139+
regionConfigs:
140+
- electableSpecs:
141+
instanceSize: M10
142+
nodeCount: 3
143+
providerName: AWS
144+
regionName: US_EAST_1
145+
priority: 7
144146
145147
EOF
146148
149+
**Free Tier:**
150+
151+
.. code-block:: sh
152+
153+
cat <<EOF | kubectl apply -f -
154+
apiVersion: atlas.mongodb.com/v1
155+
kind: AtlasDeployment
156+
metadata:
157+
name: my-atlas-cluster
158+
spec:
159+
projectRef:
160+
name: my-project
161+
deploymentSpec:
162+
clusterType: REPLICASET
163+
name: "Test-cluster"
164+
replicationSpecs:
165+
- regionConfigs:
166+
- regionName: US_EAST_1
167+
providerName: TENANT
168+
backingProviderName: AWS
169+
electableSpecs:
170+
instanceSize: M0
171+
nodeCount: 3
172+
EOF
173+
147174
To create a {+serverless-instance+}, see the
148175
:ref:`{+serverless-instance+} example <ak8so-serverless-instance>`.
149176

0 commit comments

Comments
 (0)