Created
January 27, 2016 17:12
-
-
Save errordeveloper/96f43335559c64791f48 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
gcloud compute networks create \ | |
default --range 10.240.0.0/16 | |
gcloud compute firewall-rules create default-default-internal \ | |
--network default --source-ranges 10.0.0.0/8 --allow tcp:1-65535,udp:1-65535,icmp | |
gcloud compute firewall-rules create default-default-ssh \ | |
--network default --source-ranges 0.0.0.0/0 --allow tcp:22 | |
gcloud compute disks create kubernetes-master-pd \ | |
--type pd-ssd --size 20GB | |
gcloud compute firewall-rules create kubernetes-master-https \ | |
--network default --target-tags kubernetes-master --allow tcp:443 | |
gcloud compute addresses create kubernetes-master-ip \ | |
-q --format yaml | |
gcloud compute firewall-rules create kubernetes-minion-all \ | |
--network default --source-ranges 10.244.0.0/16 --target-tags kubernetes-minion --allow tcp,udp,icmp,esp,ah,sctp | |
gcloud compute instances create kubernetes-master \ | |
--address 104.197.192.55 \ | |
--machine-type n1-standard-1 \ | |
--image-project=google-containers --image container-vm-v20151215 \ | |
--network default \ | |
--tags kubernetes-master \ | |
--can-ip-forward \ | |
--scopes storage-ro,compute-rw,monitoring,logging-write \ | |
--metadata-from-file startup-script=cluster/gce/configure-vm.sh,kube-env=/tmp/master-kube-env.yaml \ | |
--disk name=kubernetes-master-pd,device-name=master-pd,mode=rw,boot=no,auto-delete=no | |
gcloud compute instance-templates create kubernetes-minion-template \ | |
--machine-type n1-standard-1 \ | |
--image-project=google-containers --image container-vm-v20151215 \ | |
--boot-disk-type pd-standard --boot-disk-size 100GB \ | |
--network default \ | |
--tags kubernetes-minion \ | |
--can-ip-forward \ | |
--scopes compute-rw,monitoring,logging-write,storage-ro \ | |
--metadata-from-file startup-script=cluster/gce/configure-vm.sh,kube-env=/tmp/node-kube-env.yaml | |
gcloud compute instance-groups managed create kubernetes-minion-group \ | |
--base-instance-name kubernetes-minion --size 4 --template kubernetes-minion-template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment