mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-07-27 14:13:53 +03:00
add support for aws
This commit is contained in:
@@ -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}
|
||||
```
|
||||
|
Reference in New Issue
Block a user