add support for aws

pull/48/merge
Kelsey Hightower 2016-09-11 01:05:13 -07:00
parent 1ff872b05b
commit 5d794d8280
3 changed files with 14 additions and 15 deletions

View File

@ -131,9 +131,16 @@ aws ec2 authorize-security-group-ingress \
Create a public IP address that will be used by remote clients to connect to the Kubernetes control plane:
```
KUBERNETES_PUBLIC_IP=$(aws ec2 allocate-address \
--domain vpc | \
jq -r '.PublicIp')
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}
```
```
KUBERNETES_PUBLIC_IP_ADDRESS=$(aws elb describe-load-balancers \
--load-balancer-name kubernetes | \
jq -r '.LoadBalancerDescriptions[].DNSName')
```
## Provision Virtual Machines

View File

@ -125,16 +125,16 @@ In this section we will generate a TLS certificate that will be valid for all Ku
#### GCE
```
export KUBERNETES_PUBLIC_IP_ADDRESS=$(gcloud compute addresses describe kubernetes \
KUBERNETES_PUBLIC_IP_ADDRESS=$(gcloud compute addresses describe kubernetes \
--format 'value(address)')
```
#### AWS
```
export KUBERNETES_PUBLIC_IP_ADDRESS=$(aws ec2 allocate-address \
--domain vpc | \
jq -r '.PublicIp')
KUBERNETES_PUBLIC_IP_ADDRESS=$(aws elb describe-load-balancers \
--load-balancer-name kubernetes | \
jq -r '.LoadBalancerDescriptions[].DNSName')
```
---

View File

@ -305,14 +305,6 @@ gcloud compute forwarding-rules create kubernetes-rule \
### 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 \