To create kubernetes cluster in AWS, I use the set up script "https://get.k8s.io". 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?
I checked /kubernetes/cluster/aws/config-default.sh file, but there doesn't seem to be any environment variables about VPC.
However, if you have them in your VPC, you can deploy self-managed nodes and Kubernetes resources to these types of subnets. The subnets must use IP address based naming. Amazon EC2 resource-based naming isn't supported with Amazon EKS. The subnets can be a public or private.
Yes. Instances in one region can communicate with each other using Inter-Region VPC Peering, public IP addresses, NAT gateway, NAT instances, VPN Connections or Direct Connect connections.
Create an Amazon EKS cluster. You can create a cluster by using eksctl , the AWS Management Console, or the AWS CLI. Version 0.120. 0 or later of the eksctl command line tool installed on your device or AWS CloudShell.
You can add this ENV variable (we are using ver 1.1.8)
export VPC_ID=vpc-YOURID
Also Kubernetes creates a VPC with 172.20.0.0/16 and I think it expects this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With