Created
January 12, 2018 07:11
-
-
Save ixaxaar/3ce2e99780bca9e5f1150a99cacc9a6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -a regions=('us-central1-a' 'us-west1-a' 'us-east1-b' 'northamerica-northeast1-a' 'us-east4-a' 'southamerica-east1-a' 'europe-west1-b' 'europe-west2-a' 'europe-west3-a' 'europe-west4-b' 'asia-south1-a' 'asia-southeast1-a') | |
for region in ${regions[@]}; do | |
gcloud compute instances create \ | |
--machine-type=n1-highcpu-16 \ | |
--preemptible \ | |
--zone $region \ | |
spotty-${region} \ | |
--metadata-from-file startup-script=/home/ixaxaar/unitus_startup.sh | |
done | |
declare -a regions=('us-central1-a' 'us-west1-a' 'us-east1-b' 'northamerica-northeast1-a' 'us-east4-a' 'southamerica-east1-a' 'europe-west1-b' 'europe-west2-a' 'europe-west3-a' 'europe-west4-b' 'asia-south1-a' 'asia-southeast1-a') | |
for region in ${regions[@]}; do | |
gcloud compute instances create \ | |
--machine-type=n1-highcpu-8 \ | |
--preemptible \ | |
--zone $region \ | |
spotty8-${region} \ | |
--metadata-from-file startup-script=/home/ixaxaar/unitus_startup.sh | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment