Skip to content

Commit

Permalink
docs: add missing backslashes
Browse files Browse the repository at this point in the history
Compute command missing backslashes for new lines
Seq in for loop used incorrect numbering

Signed-off-by: Justin Garrison <justin.garrison@siderolabs.com>
  • Loading branch information
rothgar committed Jul 10, 2024
1 parent 398151e commit 0aebeff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ We are now ready to create our GCP nodes.

```bash
# Create the control plane nodes.
for i in $( seq 1 3 ); do
for i in $( seq 0 2 ); do
gcloud compute instances create talos-controlplane-$i \
--image talos \
--zone $REGION-b \
--tags talos-controlplane \
--boot-disk-size 20GB \
--metadata-from-file=user-data=./controlplane.yaml
--metadata-from-file=user-data=./controlplane.yaml \
--tags talos-controlplane-$i
done

# Add control plane nodes to instance group
for i in $( seq 1 3 ); do
for i in $( seq 0 2 ); do
gcloud compute instance-groups unmanaged add-instances talos-ig \
--zone $REGION-b \
--instances talos-controlplane-$i
Expand All @@ -157,7 +157,7 @@ gcloud compute instances create talos-worker-0 \
--image talos \
--zone $REGION-b \
--boot-disk-size 20GB \
--metadata-from-file=user-data=./worker.yaml
--metadata-from-file=user-data=./worker.yaml \
--tags talos-worker-$i
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ We are now ready to create our GCP nodes.

```bash
# Create the control plane nodes.
for i in $( seq 1 3 ); do
for i in $( seq 0 2 ); do
gcloud compute instances create talos-controlplane-$i \
--image talos \
--zone $REGION-b \
--tags talos-controlplane \
--boot-disk-size 20GB \
--metadata-from-file=user-data=./controlplane.yaml
--metadata-from-file=user-data=./controlplane.yaml \
--tags talos-controlplane-$i
done

# Add control plane nodes to instance group
for i in $( seq 1 3 ); do
for i in $( seq 0 2 ); do
gcloud compute instance-groups unmanaged add-instances talos-ig \
--zone $REGION-b \
--instances talos-controlplane-$i
Expand All @@ -157,7 +157,7 @@ gcloud compute instances create talos-worker-0 \
--image talos \
--zone $REGION-b \
--boot-disk-size 20GB \
--metadata-from-file=user-data=./worker.yaml
--metadata-from-file=user-data=./worker.yaml \
--tags talos-worker-$i
```

Expand Down

0 comments on commit 0aebeff

Please sign in to comment.