# Unable to use loadBalancerIP with elastic/helm-chart

**URL:** <https://discuss.elastic.co/t/unable-to-use-loadbalancerip-with-elastic-helm-chart/198954>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 6:21pm UTC](https://discuss.elastic.co/t/unable-to-use-loadbalancerip-with-elastic-helm-chart/198954 "2019-09-10T18:21:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darenjacobs](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@darenjacobs](https://discuss.elastic.co/u/darenjacobs)\
**Post date:** [September 10, 2019, 6:21pm UTC](https://discuss.elastic.co/t/unable-to-use-loadbalancerip-with-elastic-helm-chart/198954/1 "2019-09-10T18:21:44Z")

</div>

Hello,

I am deploying ElasticSearch using helm charts here: [elastic/helm-charts](https://github.com/elastic/helm-charts/tree/master/elasticsearch) on GCP k8s version: 1.13.7-gke.8.

providing loadBalancerIP: x.x.x.x is not working.

I am using the provided [values.yaml](https://github.com/elastic/helm-charts/blob/master/elasticsearch/values.yaml) file except in the "service:" section I changed type: ClusterIP to type: LoadBalancer and added loadBalancerIP: X.X.X.X, where X.X.X.X is my static IP address as follows:

service:  
type: LoadBalancer  
loadBalancerIP: X.X.X.X  
nodePort:  
annotations: {}

I was able to use the external IP address I created following the instructions here: [https://cloud.google.com/kubernetes-engine/docs/tutorials/configuring-domain-name-static-ip](https://cloud.google.com/kubernetes-engine/docs/tutorials/configuring-domain-name-static-ip)  
so I know that GCP allows the specification of loadBalancerIP, but with this helm chart I get a random IP.

My expectation is that the LoadBalancer uses the IP address that I specify on the "loadBalancerIP:" line.

Any help greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 8, 2019, 6:21pm UTC](https://discuss.elastic.co/t/unable-to-use-loadbalancerip-with-elastic-helm-chart/198954/2 "2019-10-08T18:21:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
