From c884f0a47c34339eedbb81cee9b0ede8a2c9c1fd Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Sat, 10 Sep 2016 22:57:20 -0700 Subject: [PATCH] add support for aws --- docs/04-kubernetes-controller.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/04-kubernetes-controller.md b/docs/04-kubernetes-controller.md index 864df82..704ddc9 100644 --- a/docs/04-kubernetes-controller.md +++ b/docs/04-kubernetes-controller.md @@ -271,6 +271,8 @@ etcd-2 Healthy {"health": "true"} The virtual machines created in this tutorial will not have permission to complete this section. Run the following commands from the same place used to create the virtual machines for this tutorial. +### GCE + ``` gcloud compute http-health-checks create kube-apiserver-check \ --description "Kubernetes API Server Health Check" \ @@ -300,3 +302,19 @@ gcloud compute forwarding-rules create kubernetes-rule \ --ports 6443 \ --target-pool kubernetes-pool ``` + +### AWS + +``` +aws elb create-load-balancer \ + --load-balancer-name kubernetes \ + --listeners "Protocol=TCP,LoadBalancerPort=6443,InstanceProtocol=TCP,InstancePort=6443" \ + --subnets ${SUBNET_ID} \ + --security-groups ${SECURITY_GROUP_ID} +``` + +``` +aws elb register-instances-with-load-balancer \ + --load-balancer-name kubernetes \ + --instances ${CONTROLLER_0_INSTANCE_ID} ${CONTROLLER_1_INSTANCE_ID} ${CONTROLLER_2_INSTANCE_ID} +```