How to assign an EIP to an AWS NLB in Kubernetes

Out of the box Kubernetes has no support for assigning an EIP to an AWS Network Load Balancer. There is currently a pull request for this feature listed here:

This feature request has unfortunately not been approved yet.

Not to worry though I have put together a simple application you can run as a CronJob on your current Kubernetes cluster that will clone the targets from your Kubernetes Service LoadBalancer to an AWS Network Load Balancer that you create and have an EIP assigned to.

Docker hub repository:

Source code repository:

More Resources

Want to learn more about Kubernetes. Please check out this great book that I helped review:

Senior DevOps Engineer at InSided. AWS Certified Solutions Architect Associate, AWS Certified Cloud Practitioner.