<p>To create kubernetes cluster in AWS, I use the set up script "<a href="https://get.k8s.io" rel="noreferrer">https://get.k8s.io</a>". That script creates a new VPC automatically, but I want to create kubernetes cluster inside an existing VPC in AWS. Is there a way to do it?</p>

<p>I checked /kubernetes/cluster/aws/config-default.sh file, but there doesn't seem to be any environment variables about VPC.</p>

<p>You can add this ENV variable (we are using ver 1.1.8)</p>

<p><code>export VPC_ID=vpc-YOURID</code></p>

<p>Also Kubernetes creates a VPC with 172.20.0.0/16 and I think it expects this.</p>
