Skip to content

Commit

Permalink
adding more dynamic call for gcloud os
Browse files Browse the repository at this point in the history
  • Loading branch information
elreydetoda committed Sep 21, 2018
1 parent 5fd2f5e commit b2173a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lesson-rancher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ In this lesson, we'll configure a virtual machine on Google Compute Engine to ru

Run the following commands on Google Cloud Shell to create the Virtual Machine and firewall rule:
```
gcloud beta compute instances create "rancher" --zone "us-east1-b" --machine-type "custom-1-8192-ext" --subnet "default" --maintenance-policy "MIGRATE" --no-service-account --no-scopes --min-cpu-platform "Automatic" --tags "rancher" --image "coreos-alpha-1576-1-0-v20171026" --image-project "coreos-cloud" --boot-disk-size "20" --boot-disk-type "pd-standard" --boot-disk-device-name "rancher"
gcloud beta compute instances create "rancher" --zone "us-east1-b" --machine-type "custom-1-8192-ext" --subnet "default" --maintenance-policy "MIGRATE" --no-service-account --no-scopes --min-cpu-platform "Automatic" --tags "rancher" --image "$(gcloud beta compute images list --filter="family:coreos-alpha" --format="value(NAME)")" --image-project "coreos-cloud" --boot-disk-size "20" --boot-disk-type "pd-standard" --boot-disk-device-name "rancher"
gcloud compute firewall-rules create rancher-test --direction=INGRESS --priority=1000 --network=default --action=ALLOW --rules="tcp:8000,tcp:8080,tcp:9000" --source-ranges=0.0.0.0/0 --target-tags=rancher
```
Expand Down

0 comments on commit b2173a7

Please sign in to comment.