Is it possible to run kubernetes in a shared AWS VPC private network, without dns hostnames enabled?

406 views Asked by At

I trying to setup Kubernetes cluster using kops, having all of my nodes and master running on a private shabnets on my existing AWS VPC, when passing the vpcid and network cidr to the create command, i'm enforced to have the EnableDNSHostnames=true, I wonder of it's possible to setup a cluster with that option set to false So all of the instances lunched in the private vpc wont have public address Thanks

1

There are 1 answers

0
Steve Sloka On

It's completely possible to run in private subnets, that's how I deploy my cluster (https://github.com/upmc-enterprises/kubernetes-on-aws), where all servers are in private subnets and access is granted via bastion boxes.

For kops specifically, looks like there's support (https://github.com/kubernetes/kops/issues/428), but I'm not a big user of it so can't speak 100% to how well it works.