OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 # | |
3 # Creates the compute instance for the skia frontends. | |
4 # | |
5 set -x | |
6 | |
7 source vm_config.sh | |
8 | |
9 | |
10 for NUM in $(seq 1 $NUM_INSTANCES); do | |
11 | |
12 gcloud compute --project $PROJECT_ID disks create $INSTANCE_NAME-$NUM \ | |
13 --zone $ZONE \ | |
14 --source-snapshot skia-pushable-base \ | |
15 --type "pd-standard" | |
16 | |
17 gcloud compute --project $PROJECT_ID instances create $INSTANCE_NAME-$NUM\ | |
18 --zone $ZONE \ | |
19 --machine-type n1-standard-4 \ | |
rmistry
2015/01/05 19:25:34
Store machine type in vm_config.sh to be consisten
jcgregorio
2015/01/05 20:13:17
Done.
| |
20 --network "default" \ | |
21 --maintenance-policy "MIGRATE" \ | |
22 --scopes $SCOPES \ | |
23 --tags "http-server" "https-server" \ | |
24 --disk "name="$INSTANCE_NAME-$NUM "device-name="$INSTANCE_NAME-$NUM "mode=rw " "boot=yes" "auto-delete=yes" \ | |
25 --metadata-from-file "startup-script=startup-script.sh" | |
26 | |
27 done | |
OLD | NEW |