# L4 Balancer, pending, External-IP

**URL:** <https://forums.suse.com/t/l4-balancer-pending-external-ip/10449>\
**Category:** SUSE Rancher Prime\
**Created:** [May 16, 2018, 1:57pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449 "2018-05-16T13:57:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![NachoColl](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nachocoll/32/4055_2.png) [@NachoColl](https://forums.suse.com/u/NachoColl)\
**Post date:** [May 16, 2018, 1:57pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/1 "2018-05-16T13:57:54Z")

</div>

If I create a new workload and select L4 load balancer, it hangs at “pending” while trying to get external ip.

Is there any missing configuration to allow balancer to get an external ip?

thanks!

---

<div class="post-metadata">

**Author:** ![Kleber\_Rocha](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kleber_rocha/32/4067_2.png) [@Kleber\_Rocha](https://forums.suse.com/u/Kleber_Rocha)\
**Post date:** [May 18, 2018, 2:51pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/2 "2018-05-18T14:51:32Z")

</div>

I have the same issue here, do you get any solution about that problem?

Thank you

---

<div class="post-metadata">

**Author:** ![salty2011](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@salty2011](https://forums.suse.com/u/salty2011)\
**Post date:** [May 22, 2018, 2:04pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/3 "2018-05-22T14:04:19Z")

</div>

Hey, was hitting similar brick walls with my vmware test lab, but not so on my AWS lab. Manage to find info on how the L4 and L7 load balancers work below

Check out  
[https://rancher.com/docs/rancher/v2.x/en/concepts/load-balancing/](https://rancher.com/docs/rancher/v2.x/en/concepts/load-balancing/)

Depending on the workload you are deploying check what layer the load balancer is as it may not be supported on the Cloud / VM platform used to run containers.

eg, if your running rancher on a vSphere environment then Layer 4 lb’s are not supported. However Layer 7 lb’s are but aren’t supported by all cloud platforms (ie Azure).

Lastly depending on the traffic being passed you may to confirm what lb layer you need.

---

<div class="post-metadata">

**Author:** ![Kleber\_Rocha](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kleber_rocha/32/4067_2.png) [@Kleber\_Rocha](https://forums.suse.com/u/Kleber_Rocha)\
**Post date:** [May 22, 2018, 2:45pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/4 "2018-05-22T14:45:26Z")

</div>

Yes, I get that, the problem with Ingress (L7), with Rancher 2.0, is not possible to set a custom port, it only bind on 80 and 443, on Rancher 1.6, it launch a ha-proxy instance with Ingress, using the annotation http.port, it help us with multiple instances of Ingress, today is not possible, once Ingress doesn’t support custom port.

---

<div class="post-metadata">

**Author:** ![mgamperl](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mgamperl/32/2226_2.png) [@mgamperl](https://forums.suse.com/u/mgamperl)\
**Post date:** [May 22, 2018, 5:26pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/5 "2018-05-22T17:26:00Z")

</div>

I had the same issues and yes l4 loadbalancer is not supported for vsphere but it seems rancher is setting up ingress-nginx in the cluster so you can use the tcp-services configMap to configure tcp loadbalancing. Refer to ingress-nginx documentation for more details. [https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/](https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/)

Ingress-nginx is deployed in its own namespace but when you assign the namespace to a project you can edit the configMap via rancher ui.

Hope this helps but I yet dont know if this has any side effects…

---

<div class="post-metadata">

**Author:** ![Kleber\_Rocha](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kleber_rocha/32/4067_2.png) [@Kleber\_Rocha](https://forums.suse.com/u/Kleber_Rocha)\
**Post date:** [May 22, 2018, 9:59pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/6 "2018-05-22T21:59:10Z")

</div>

Yes, this realy change the ports, the problem with this approach is, it only changes the port from 80 to other port, but, I needed some solution like Rancher 1.6 does, create a instance of Ingress, create a instance of ha-proxy, and using the annotation http.port I can set a different port for each ingress setup.

---

<div class="post-metadata">

**Author:** ![NachoColl](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nachocoll/32/4055_2.png) [@NachoColl](https://forums.suse.com/u/NachoColl)\
**Post date:** [May 23, 2018, 1:08pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/7 "2018-05-23T13:08:57Z")

</div>

I’m using AWS EC2, does it mean that when setting L4 balancer I need to manually setup ELB/NLB on AWS manually? I thought that rancher owuld launch an internal ngnix for that… how it works exactly?  
Thanks,

---

<div class="post-metadata">

**Author:** ![Andrea\_Ciani](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andrea_ciani/32/4650_2.png) [@Andrea\_Ciani](https://forums.suse.com/u/Andrea_Ciani)\
**Post date:** [November 22, 2018, 4:36pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/8 "2018-11-22T16:36:57Z")

</div>

Same problem here. I have the same need of @Kleber_Rocha and I’m running on EC2 as @NachoColl.

Have you find something? How you solved the issue?

---

<div class="post-metadata">

**Author:** ![AdamR](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AdamR](https://forums.suse.com/u/AdamR)\
**Post date:** [August 27, 2020, 3:05pm UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/9 "2020-08-27T15:05:09Z")

</div>

Bump^

Facing the same problem

---

<div class="post-metadata">

**Author:** ![pparisot](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@pparisot](https://forums.suse.com/u/pparisot)\
**Post date:** [March 31, 2021, 3:46am UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/10 "2021-03-31T03:46:14Z")

</div>

Any news on this issue? Currently facing it when deploying bitnami helm charts, creates an L4 load balancer stuck on pending

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 2, 2021, 9:31am UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/11 "2021-04-02T09:31:27Z")

</div>

There’s no news to be had here… generic k8s clusters have no controller configured to handle services of type=LoadBalancer. If you try to make one and nothing is configured, they just sit in pending state forever.

If you want them to work you need to:

- Set up the appropriate Cloud Provider for the hosting company you’re using, if one exists (AWS, etc)

- or a 3rd party implementation (for on-prem installations, mostly) like MetalLB or kube-vip.

- or our k3s distribution includes a (very) basic implementation which just uses ports on the node so that they do something useful by default.

---

<div class="post-metadata">

**Author:** ![Code7Bit](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/code7bit/32/7168_2.png) [@Code7Bit](https://forums.suse.com/u/Code7Bit)\
**Post date:** [June 25, 2021, 6:22am UTC](https://forums.suse.com/t/l4-balancer-pending-external-ip/10449/12 "2021-06-25T06:22:15Z")

</div>

sorry to hijack the thread, but i am having wierd KUBE-VIP issue, when a more “heavy” deployment like replacing local-storage with Longhorn for example, the clusters as masters or agents’s API starts not being availavable which triggers kube-vip to start leader election (tried both etcd/datastore) and this will continue until the deployment finishes and cause random disconects from the cluster…

```auto
time="2021-06-23T08:28:03Z" level=info msg="Starting Kube-vip Manager with the ARP engine"
time="2021-06-23T08:28:03Z" level=info msg="Namespace [kube-system], Hybrid mode [true]"
time="2021-06-23T08:28:03Z" level=info msg="Beginning cluster membership, namespace [kube-system], lock name [plndr-svcs-lock], id [cp-01]"
I0623 08:28:03.422982 1 leaderelection.go:243] attempting to acquire leader lease kube-system/plndr-svcs-lock...
time="2021-06-23T08:28:03Z" level=info msg="Beginning cluster membership, namespace [kube-system], lock name [plndr-cp-lock], id [cp-01]"
I0623 08:28:03.428041 1 leaderelection.go:243] attempting to acquire leader lease kube-system/plndr-cp-lock...
time="2021-06-23T08:28:13Z" level=info msg="new leader elected: cp-03"
time="2021-06-23T08:28:13Z" level=info msg="Node [cp-02] is assuming leadership of the cluster"
I0623 08:30:49.238720 1 leaderelection.go:253] successfully acquired lease kube-system/plndr-cp-lock
time="2021-06-23T08:30:49Z" level=info msg="Node [cp-01] is assuming leadership of the cluster"

```

is there something i am missing ?
