expose pgbouncer service to external clients

8/18/2019

I am trying to implement pgbouncer on k8s, using a helm chart created deployment,service…now how do I expose the service to outside world? Not much familiar with k8s networking, tried to create an ingress resource and it created an elb in aws…how do I map this elb to the service and expose it? the service is created with type ClusterIP…the service is a tcp service i.e. not http/https application (edited)

The helm chart used is - https://github.com/futuretechindustriesllc/charts/tree/master/charts/pgbouncer

-- nmakb
kubernetes
kubernetes-ingress

1 Answer

8/18/2019

Ingresses are only used for HTTP and friends. In this case what you want is probably a LoadBalancer type service. That will make a balancer fabric and then expose it via an ELB.

-- coderanger
Source: StackOverflow