-
Notifications
You must be signed in to change notification settings - Fork 20
openshift using gce cli
Chakradhar Rao Jonagam edited this page Apr 22, 2016
·
8 revisions
gcloud auth login
gcloud compute --project "neon-griffin-127116" instance-templates create "origin" --machine-type "n1-standard-1"\
--network "default" --maintenance-policy "MIGRATE" \
--scopes [email protected]="https://www.googleapis.com/auth/cloud-platform" \
--tags "http-server","https-server" --image "/centos-cloud/centos-6-v20160418" \
--boot-disk-size "30" --boot-disk-type "pd-ssd" \
--boot-disk-device-name "ose"
gcloud compute --project "neon-griffin-127116" instance-templates create "origin2" --machine-type "n1-standard-1" --network "default" --metadata "ssh-keys=cjonagam:$SSHKEY" --maintenance-policy "MIGRATE" --scopes [email protected]="https://www.googleapis.com/auth/cloud-platform" --tags "http-server","https-server" --image "/centos-cloud/centos-7-v20160418" --boot-disk-size "30" --boot-disk-type "pd-ssd" --boot-disk-device-name "origin2"
gcloud compute --project "neon-griffin-127116" instance-groups managed create "ose" --zone "us-central1-b" \
--base-instance-name "ose" --template "origin" --size "2"