Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 66d25c0

Browse files
authored
Update kubernetes-on-aws-prerequisites.md
ref #121
1 parent a7976dd commit 66d25c0

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Documentation/kubernetes-on-aws-prerequisites.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,25 @@ If you're deploying a cluster with kube-aws:
77

88
## Deploying to an existing VPC
99

10-
If you're deploying a cluster to an existing VPC:
10+
`kube-aws` tries its best to not modify your existing AWS resources therefore it's users' responsibility to ensure existing AWS resources provided to `kube-aws` are properly configured.
1111

12-
* Internet Gateway needs to be added to VPC before cluster can be created
12+
Please note that you don't need to care if you've instructed `kube-aws` to create all the AWS resources for you i.e. you've omitted `vpcId` and `routeTableId` from `cluster.yaml`.
13+
14+
What `kube-aws` does modify are:
15+
16+
* Adding a record set for Kubernetes API Endpoint to an existing hosted zone you've provided via the `hostedZoneId` configuration key in `cluster.yaml`
17+
* Adding one or more subnet(s) to an existing VPC specified by the `vpcId`
18+
* Associating one or more subnet(s) to an existing route table specified by the `routeTableId`
19+
20+
See [`cluster.yaml`](https://github.com/coreos/kube-aws/blob/master/config/templates/cluster.yaml) for more details.
21+
22+
All the other configurations for existing AWS resources must be done property by users before `kube-aws` is run.
23+
24+
For example, if you're deploying a cluster to an existing VPC:
25+
26+
* An internet gateway or a NAT gateway needs to be added to VPC before cluster can be created
1327
* Or [all the nodes will fail to launch because they can't pull docker images or ACIs required to run essential processes like fleet, hyperkube, etcd, awscli, cfn-signal, cfn-init.](https://github.com/coreos/kube-aws/issues/120)
28+
* Existing route tables must have an route to Internet in some form. For example, a default route to an internet gateway or to a NAT gateway via `0.0.0.0/0` would be needed or your cluster won't come up. See [a relevant issue about it](https://github.com/coreos/kube-aws/issues/121#issuecomment-266255407).
1429
* Existing route tables to be reused by kube-aws must be tagged with the key `KubernetesCluster` and your cluster's name for the value.
1530
* Or [Kubernetes will fail to create ELBs correspond to Kubernetes services with `type=LoadBalancer`](https://github.com/coreos/kube-aws/issues/135)
1631
* ["DNS Hostnames" must be turned on before cluster can be created](https://github.com/coreos/kube-aws/issues/119)

0 commit comments

Comments
 (0)