# How to expose "demo" ECK elastic/kibana services on Kubernetes? loadbalancer?

**URL:** https://discuss.elastic.co/t/how-to-expose-demo-eck-elastic-kibana-services-on-kubernetes-loadbalancer/320492
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [December 5, 2022, 5:50pm UTC](https://discuss.elastic.co/t/how-to-expose-demo-eck-elastic-kibana-services-on-kubernetes-loadbalancer/320492 "2022-12-05T17:50:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![timb33](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@timb33](https://discuss.elastic.co/u/timb33)
#### Post date: [December 5, 2022, 5:50pm UTC](https://discuss.elastic.co/t/how-to-expose-demo-eck-elastic-kibana-services-on-kubernetes-loadbalancer/320492/1 "2022-12-05T17:50:49Z")

</div>

Hi,  
I've following the quickstart demo ([Quickstart | Elastic Cloud on Kubernetes [2.5] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html)) and have an ES I can port-forward to,but I want to be able to access my ES instance using e.g. a loadbalancer. Usually, I'd add a service to expose my deployment but that doesn't appear to work and feels like I'm working around the idea of using an operator. Please can someone tell me how to expose my new ES. Thanks,

```auto
	kubectl get services
	NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
	kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 213d
	quickstart-es-transport ClusterIP None <none> 9300/TCP 5h39m
	quickstart-es-http ClusterIP 10.152.183.141 <none> 9200/TCP 5h39m
	quickstart-es-internal-http ClusterIP 10.152.183.68 <none> 9200/TCP 5h39m
	quickstart-es-default ClusterIP None <none> 9200/TCP 5h39m
	quickstart-kb-http ClusterIP 10.152.183.187 <none> 5601/TCP 5h25m
	coffee-service LoadBalancer 10.152.183.144 <pending> 80:30628/TCP 3h12m
	
	
	
	kubectl describe service quickstart-kb-http
	Name: quickstart-kb-http
	Namespace: default
	Labels: common.k8s.elastic.co/type=kibana
					   kibana.k8s.elastic.co/name=quickstart
	Annotations: <none>
	Selector: common.k8s.elastic.co/type=kibana,kibana.k8s.elastic.co/name=quickstart
	Type: ClusterIP
	IP Family Policy: SingleStack
	IP Families: IPv4
	IP: 10.152.183.187
	IPs: 10.152.183.187
	Port: https 5601/TCP
	TargetPort: 5601/TCP
	Endpoints: 10.1.6.194:5601
	Session Affinity: None
	Events: <none>

```

---

<div class="post-metadata">

### Author: ![timb33](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@timb33](https://discuss.elastic.co/u/timb33)
#### Post date: [December 7, 2022, 3:05pm UTC](https://discuss.elastic.co/t/how-to-expose-demo-eck-elastic-kibana-services-on-kubernetes-loadbalancer/320492/2 "2022-12-07T15:05:11Z")

</div>

I'm going with the following Ingress:

```auto
	apiVersion: networking.k8s.io/v1
	kind: Ingress #https://kubernetes.io/docs/concepts/services-networking/ingress/
	metadata:
	  name: http-ingress
	  # annotations:
	  # nginx.ingress.kubernetes.io/rewrite-target: /
	spec:
	  #ingressClassName: http-ingress
	  rules:
	  - http:
		  paths:
		  - path: /
			pathType: Prefix
			backend:
			  service:
				name: quickstart-es-http
				port:
				  number: 9200

```

---

<div class="post-metadata">

### Author: ![dataRunner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/datarunner/32/113119_2.png) [@dataRunner](https://discuss.elastic.co/u/dataRunner)
#### Post date: [December 8, 2022, 5:31pm UTC](https://discuss.elastic.co/t/how-to-expose-demo-eck-elastic-kibana-services-on-kubernetes-loadbalancer/320492/3 "2022-12-08T17:31:34Z")

</div>

I'm having a similar issue. But one step earlier, I can't get the port-forwarding to work. Maybe using the loadbalancer would help that too.

I did find the advice to add the following to the env variables on the container:  
env:

- name: "NETWORK\_HOST"  
value: "_site_,_lo_"

But the quickstart ymls don't have container specifications, so I think we have to add that first.

---

<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: [January 5, 2023, 5:31pm UTC](https://discuss.elastic.co/t/how-to-expose-demo-eck-elastic-kibana-services-on-kubernetes-loadbalancer/320492/4 "2023-01-05T17:31:54Z")

</div>

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