You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gcp/README.md
+29-23Lines changed: 29 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,23 @@ _Mission: Allow for automated installs and upgrades for DC/OS on GCP._
10
10
- SSH Keys
11
11
- Existing Google Project. Soon automated with Terraform using project creation as documented [here.](https://cloud.google.com/community/tutorials/managing-gcp-projects-with-terraform)
12
12
13
+
14
+
## Create Installer Directory
15
+
16
+
Make your directory where Terraform will download and place your Terraform infrastructure files.
17
+
18
+
```bash
19
+
mkdir dcos-installer
20
+
cd dcos-installer
21
+
```
22
+
23
+
Run this command below to have Terraform initialized from this repository. There is **no git clone of this repo required** as Terraform performs this for you.
We've provided all the sensible defaults that you would want to play around with DC/OS. Just run this command to deploy a multi-master setup in the cloud. Three agents will be deployed for you. Two private agents, one public agent.
72
-
73
-
- There is no git clone of this repo required. Terraform does this for you under the hood.
The default variables are tracked in the [variables.tf](/gcp/variables.tf) file. Since this file can be overwritten during updates when you may run `terraform get --update` when you want to fetch new releases of DC/OS to upgrade too, its best to use the [desired_cluster_profile.tfvars](/gcp/desired_cluster_profile.tfvars.example) and set your custom terraform and DC/OS flags there. This way you can keep track of a single file that you can use manage the lifecycle of your cluster.
@@ -157,6 +161,13 @@ You can upgrade your DC/OS cluster with a single command. This terraform script
157
161
#### Rolling Upgrade
158
162
###### Supported upgraded by dcos.io
159
163
164
+
##### Prerequisite:
165
+
Update your terraform scripts to gain access to the latest DC/OS version with this command below:
If you would like to add or remove (private) agents or public agents from your cluster, you can do so by telling terraform your desired state and it will make sure it gets you there. For example, if I have 2 private agents and 1 public agent in my `-var-file` I can always override that flag by specifying the `-var` flag. It has higher priority than the `-var-file`.
186
+
If you would like to add more or remove (private) agents or public agents from your cluster, you can do so by telling terraform your desired state and it will make sure it gets you there.
177
187
178
188
### Adding Agents
179
189
180
190
```bash
181
-
terraform apply \
182
-
-var-file desired_cluster_profile.tfvars \
183
-
-var num_of_private_agents=5 \
184
-
-var num_of_public_agents=3
191
+
# update num_of_private_agents = "5" in desired_cluster_profile.tfvars
0 commit comments