r/devops • u/calabaria • Sep 09 '26
Discussion public EKS cluster API endpoint
I have a central ArgoCD instance running in EKS. I'm using the ApplicationSet pattern to manage a few EKS clusters across private networking. I have one EKS cluster that doesn't fit into my private networking setup (not that it matters but it's in a different account entirely). I'm considering making that cluster's API server endpoint public and locking it down to the NAT egress IP of where my ArgoCD instance runs so that only my ArgoCD instance can connect to it. I don't love this. VPNs and TGW are out of the question, where my ArgoCD instance lives and where this particular EKS cluster lives are separate. Thoughts? Condolences?
3
u/thesllug Sep 10 '26
oh the bright side you can still whitelist CIDRs for an eks cluster with public endpoint... not sure how else you'd achieve without being able to get into this clusters vpc
4
u/MordecaiOShea Sep 10 '26
By saying the right solution (VPN) is out of the question, I'm not sure why you'd ask for thoughts on doing the wrong thing.
3
u/marvdl93 Sep 10 '26
Why is a VPN out of the question? With a Tailscale ephemeral node you can easily connect. With a public API you will be vulnerable to zero days and such.
2
u/kryptn Sep 10 '26
i'd see if argocd-agent does what you want.
1
u/stumptruck Staff Engineer Sep 10 '26
We use Teleport to proxy API server access between argocd/clusters. You should be able to do this with tailscale or other similar tools as well.
1
u/Coffee-and-ai Sep 11 '26
With a public endpoint and an allowlist, anyone not on the list gets nothing. Anyone on the list without AWS credentials gets the version and health pages and is refused on everything else, because every real call needs a signed AWS request checked against the cluster's access entries. The allowlist is a second lock, not the only one. What's left is an unauthenticated bug in the API server itself. Rare, but real, and the allowlist covers it as long as nobody else shares your NAT IP. So don't share it.
1
u/MateusKingston Sep 13 '26
I mean any possible way of connecting the private networks and keeping it private you're ruling out so...
There isn't really any other option? Make it public and tighten it as much as possible, make sure it's a fixed IP you control and that's it.