Quantcast
Viewing latest article 25
Browse Latest Browse All 40

Using existing load balancer for K8S service

I have a simple app that I need to deploy in K8S (running on AWS EKS) and expose it to the outside world.

I know that I can add a service with the type LoadBalancer and viola K8S will create AWS ALB for me.

spec:  type: LoadBalancer

However, the issue is that it will create a new LB.

The main reason why this is an issue for me is that I am trying to separate out infrastructure creation/upgrades (vs. software deployment/upgrade). All of my infrastructures will be managed by Terraform and all of my software will be defined via K8S YAML files (may be Helm in the future).

And the creation of a load balancer (infrastructure) breaks this model.

Two questions:

  • Do I understand correctly that you can't change this behavior (create vs. use existing)?

  • I read multiple articles about K8S and all of them lead me into the direction of Ingress + Ingress Controller. Is this the way to solve this problem?

I am hesitant to go in this direction. There are tons of steps to get it working and it will take time for me to figure out how to retrofit it in Terraform and k8s YAML files


Viewing latest article 25
Browse Latest Browse All 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>