Create a cluster of kubernetes within an existing VPC in AWS

To create a kubernetes cluster in AWS, I use the script setting " https://get.k8s.io ". This script automatically creates a new VPC, but I want to create a cluster of tunnels inside an existing VPC in AWS. Is there any way to do this?

I checked the file / kubernetes / cluster / aws / config -default.sh, but there seems to be no environment variables for VPC.

+7
docker amazon-web-services kubernetes
source share
2 answers

You can add this ENV variable (we use version 1.1.8)

export VPC_ID=vpc-YOURID

Kubernetes also creates VPCs with 172.20.0.0/16, and I think he expects this.

+6
source share

EC2 instances are used as backends for kubernets in the AWS cloud. You can always start the required number of instances manually and deploy any of the above services.

The following article describes how to start an EC2 instance: http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/getting-started-launch-instance.html

By the way, Amazon already provides a managed service, similar to docker-based quartets. I suggest you consider using it. More info here: https://aws.amazon.com/ecs/details/

-one
source share

All Articles