creating a service endpoint for a service in eks

2/9/2021

So I have a service running on an eks cluster. It's of type LoadBalancer and annotated to create an nlb.

This is part of a migration we're having from fargate env to k8s. In the old environment, we used a service endpoint with that nlb to use PrivateLink. Is there a way to create this with k8s automatically?

The whole process should be automatic - we use terraform, and I can't go and manually create the service over this. I also don't know how this would behave if I tamper with the app's service yaml - will it recreate the nlb? what then? (Using helm to manage it).

If there is no way to do this, maybe I shouldn't have k8s create the nlb, do this manually, and give the server some arn or other indication of the nlb to associate with?

Thanks!

-- J. Doe
amazon-eks
amazon-web-services
kubernetes

1 Answer

2/10/2021

Kubernetes AWS integration (the cloud-provider-aws controller to be precise) currently can't provision/configure/pass VPC PrivateLink.

Solutions:

-- kwarunek
Source: StackOverflow