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} +```