# Google Cloud Kubernetes Elastic Interal LoadBalancer

**URL:** https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787
**Category:** Elasticsearch
**Tags:** docker
**Created:** [December 2, 2021, 3:45pm UTC](https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787 "2021-12-02T15:45:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Adriann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriann/32/77780_2.png) [@Adriann](https://discuss.elastic.co/u/Adriann)
#### Post date: [December 2, 2021, 3:45pm UTC](https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787/1 "2021-12-02T15:45:25Z")

</div>

Hello,

I have a GCP project with /28 VPC(nodes network) the main network peered with another Shared VPC project that maintains connectivity with all other resources. So far I have deployed elasticserach and kibana using ECK and Google Cloud autopilot Kubernetes Cluster.

I have tried making loadbalancer service with predefined endpoint(kind: Endpoint) but It takes IP from kubernetes service subnet(insted the one I provided). I want to expose kibana 5601 port on VPC main subnet network IP on port 443 as well as elasticserach port 9200 on main vpc subnet network on port 9200. Could you please help me achieve that?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 2, 2021, 10:46pm UTC](https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787/2 "2021-12-02T22:46:30Z")

</div>

Hi @Adriann

Perhaps take a look at this thread

> [@Is Kibana supported on GKE through default google ingress ? doesn't seem so](https://discuss.elastic.co/t/is-kibana-supported-on-gke-through-default-google-ingress-doesnt-seem-so/264067):
>
> I have deployed Elastic Search and Kibana on GKE. However unable to get ingress working as it seems to report Kibana service as unhealthy. I assume this is due to the root url redirecting with http 302 and GKE LB L7 expecting status of 200 always based on reading around. Can someone confirm this and if there is a work around provide as I have spent quiet a bit of trying to get it working and seem to be stuck with the whole thing.

---

<div class="post-metadata">

### Author: ![Adriann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriann/32/77780_2.png) [@Adriann](https://discuss.elastic.co/u/Adriann)
#### Post date: [December 3, 2021, 4:44pm UTC](https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787/3 "2021-12-03T16:44:51Z")

</div>

So I have achieved what I wanted.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0e965562041e942bb7329cf6207863749dc58d3d.png)

Doing this

> <https://stackoverflow.com/questions/60073898/gke-how-to-attach-static-ip-to-internal-load-balancer>

and this

```auto
apiVersion: v1
kind: Service
metadata:
  name: kibana-service-https
  namespace: xx
  annotations:
    networking.gke.io/load-balancer-type: "Internal"
spec:
  selector:
    kibana.k8s.elastic.co/name: my-kibana
  ports:
    - protocol: TCP
      port: 443
      targetPort: 5601
  type: LoadBalancer
  loadBalancerIP: 10.xx.xx.xx

```

It does not support tags, but to be honest I do not see a purpose In tag driven firewall If I can just make a new VM in any project, just add the tag and I have connectivity... Maybe I am missing something...

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 3, 2021, 4:53pm UTC](https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787/4 "2021-12-03T16:53:53Z")

</div>

@Adriann Thanks for reporting back what worked / your solution! Very useful for others!

---

<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: [December 31, 2021, 4:54pm UTC](https://discuss.elastic.co/t/google-cloud-kubernetes-elastic-interal-loadbalancer/290787/5 "2021-12-31T16:54:24Z")

</div>

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