Commit 4dcc4bbc authored by Fabio Yeon's avatar Fabio Yeon

Merge pull request #23362 from miguelfrde/configure-base-vpc-cidr

AWS kube-up: Allow VPC CIDR to be specified (experimental)
parents d4de319e 485aa7fa
...@@ -141,4 +141,13 @@ export MASTER_IP_RANGE="100.65.0.0/24" ...@@ -141,4 +141,13 @@ export MASTER_IP_RANGE="100.65.0.0/24"
export CLUSTER_IP_RANGE="100.66.0.0/16" export CLUSTER_IP_RANGE="100.66.0.0/16"
``` ```
**KUBE_VPC_CIDR_BASE**
By default `kube-up.sh` will create a VPC with CIDR 172.20.0.0/16. `KUBE_VPC_CIDR_BASE` allows to configure
this CIDR. For example you may choose to use `172.21.0.0/16`:
```
export KUBE_VPC_CIDR_BASE=172.21
```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/aws/options.md?pixel)]() [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/aws/options.md?pixel)]()
...@@ -102,7 +102,7 @@ export AWS_DEFAULT_OUTPUT=text ...@@ -102,7 +102,7 @@ export AWS_DEFAULT_OUTPUT=text
AWS_CMD="aws ec2" AWS_CMD="aws ec2"
AWS_ASG_CMD="aws autoscaling" AWS_ASG_CMD="aws autoscaling"
VPC_CIDR_BASE=172.20 VPC_CIDR_BASE=${KUBE_VPC_CIDR_BASE:-172.20}
MASTER_IP_SUFFIX=.9 MASTER_IP_SUFFIX=.9
VPC_CIDR=${VPC_CIDR_BASE}.0.0/16 VPC_CIDR=${VPC_CIDR_BASE}.0.0/16
SUBNET_CIDR=${VPC_CIDR_BASE}.0.0/24 SUBNET_CIDR=${VPC_CIDR_BASE}.0.0/24
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment