-
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
export SSHKEY=`cat ~/.ssh/id_rsa.pub`
gcloud compute --project "neon-griffin-127116" instance-templates create "origin" \
--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 "origin"
gcloud compute --project "neon-griffin-127116" \
instance-groups managed create "ose" \
--zone "us-central1-b" \
--base-instance-name "ose" \
--template "origin" --size "2"
ssh [email protected]
sudo su -
htpasswd -c /etc/origin/htpasswd admin
htpasswd -c /etc/origin/htpasswd user01