Skip to content

Commit

Permalink
Specify machine type
Browse files Browse the repository at this point in the history
  • Loading branch information
drduh committed Dec 8, 2018
1 parent 2f47fee commit 379a5ce
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,24 @@ Create a dedicated network:

$ gcloud beta compute networks create debian-privsec-net

Create an instance:
Set the `PROJECT`, `INSTANCE`, `NETWORK`, [`ZONE`](https://cloud.google.com/compute/docs/regions-zones/), and [`TYPE`](https://cloud.google.com/compute/docs/machine-types) variables, as well as a recent image version:

$ gcloud beta compute images list | grep debian
debian-9-stretch-v20181113 debian-cloud debian-9 READY
$ IMAGE=debian-9-stretch-v20181113

$ PROJECT=debian-privsec-cloud
$ INSTANCE=debian-privsec-standard
$ NETWORK=debian-privsec-net
$ TYPE=n1-standard-1
$ ZONE=us-east1-a
$ gcloud beta compute --project=$PROJECT instances create $INSTANCE --zone=$ZONE --subnet=$NETWORK \
--machine-type=n1-standard-1 --network-tier=PREMIUM --can-ip-forward --no-restart-on-failure --maintenance-policy=TERMINATE \
--no-service-account --no-scopes --image=debian-9-stretch-v20181113 --image-project=debian-cloud \
--boot-disk-size=40GB --boot-disk-type=pd-standard --boot-disk-device-name=$INSTANCE

Be sure to set the `PROJECT`, `INSTANCE`, [`ZONE`](https://cloud.google.com/compute/docs/regions-zones/), and `NETWORK` variables, as well as a recent image version:
Create an instance:

$ gcloud beta compute images list | grep debian
debian-9-stretch-v20181113 debian-cloud debian-9 READY
$ gcloud beta compute --project=$PROJECT instances create $INSTANCE --zone=$ZONE --subnet=$NETWORK \
--machine-type=$TYPE --network-tier=PREMIUM --can-ip-forward --no-restart-on-failure --maintenance-policy=TERMINATE \
--no-service-account --no-scopes --image=$IMAGE --image-project=debian-cloud \
--boot-disk-size=40GB --boot-disk-type=pd-standard --boot-disk-device-name=$INSTANCE

Add a rule for remote access:

Expand Down

0 comments on commit 379a5ce

Please sign in to comment.