# Switching from Cluster IP to Load balancer hangs in pending forever

**URL:** <https://forums.percona.com/t/switching-from-cluster-ip-to-load-balancer-hangs-in-pending-forever/31693>\
**Category:** Percona Operator for PostgreSQL\
**Created:** [July 18, 2024, 4:00pm UTC](https://forums.percona.com/t/switching-from-cluster-ip-to-load-balancer-hangs-in-pending-forever/31693 "2024-07-18T16:00:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vamsi](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@vamsi](https://forums.percona.com/u/vamsi)\
**Post date:** [July 18, 2024, 4:00pm UTC](https://forums.percona.com/t/switching-from-cluster-ip-to-load-balancer-hangs-in-pending-forever/31693/1 "2024-07-18T16:00:44Z")

</div>

I’ve deployed the postgres db, operator using helm charts. I was able to connect to the DB using PG client pod.

I need to switch from clusterIP to load balancer so that I can connect to the DB from external clients.

When I tried to add expose type to LoadBalancer, and run helm upgrade, pgbouncer service hangs in pending mode as shown below

Any thoughts would be much appreciated.

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR  
ppg-db-pgbouncer LoadBalancer 172.20.133.11 5432:32060/TCP 2d2h [postgres-operator.crunchydata.com/cluster=ppg-db,postgres-operator.crunchydata.com/role=pgbouncer](http://postgres-operator.crunchydata.com/cluster=ppg-db,postgres-operator.crunchydata.com/role=pgbouncer)

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [July 18, 2024, 7:48pm UTC](https://forums.percona.com/t/switching-from-cluster-ip-to-load-balancer-hangs-in-pending-forever/31693/2 "2024-07-18T19:48:47Z")

</div>

Hello @vamsi ,

out of the output you shared it is not clear what the issue is.

Can you run `kubectl describe svc ppg-db-pgbouncer` and show the output?

I don’t see EXTERNAL-IP in your output, so my guess would be that there is some issue with getting it within your k8s env.

1. Which k8s flavor are you using? (AWS, GKE, k3s, etc).
2. Which version of the operator it is? I assume latest 2.4, but maybe I’m wrong.
