I've EKS cluster with API server access set to private
. For the EKS cluster I've created a dedicated VPC(172.169.0.0/16)
. Now I've another VPC(which is my default VPC, 172.170.0.0/16) on which I've launched a VM and installed kubectl
CLI. To access the API server I've enabled VPC peering between VPC and updated route table on both the VPCs. And also allowed 443 port to be accessed using security group. After all these configuration I'm still not able to access API server using kubectl
CLI. How to access API server from another VPC even if the security is to private.
NOTE: If I change the configuration to public I'm able to access the API server from kubectl command.