# No Endpoints for port 9300

**URL:** <https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [February 29, 2020, 9:40pm UTC](https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542 "2020-02-29T21:40:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtapia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dtapia/32/85717_2.png) [@dtapia](https://discuss.elastic.co/u/dtapia)\
**Post date:** [February 29, 2020, 9:40pm UTC](https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542/1 "2020-02-29T21:40:23Z")

</div>

When I deploy a new instance of ECK, I only see services with port 9200

```auto
service/r4e-elasticsearch-datastore-cluster-es-http ClusterIP 10.224.83.227 <none> 9200/TCP 3h37m
service/r4e-elasticsearch-datastore-cluster-kb-http ClusterIP 10.224.85.11 <none> 5601/TCP 3h37m
pod/r4e-elasticsearch-datastore-cluster-es-default-0 1/1 Running 0 3h37m
pod/r4e-elasticsearch-datastore-cluster-kb-65b79d76c9-pwpgg 1/1 Running 0 3h37m

```

I need a java app to connect to port 9300 for TCP, is this available on ECK?

---

<div class="post-metadata">

**Author:** ![pebrc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pebrc/32/101790_2.png) [@pebrc](https://discuss.elastic.co/u/pebrc)\
**Post date:** [March 1, 2020, 4:30pm UTC](https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542/2 "2020-03-01T16:30:01Z")

</div>

We don't currently expose the transport layer through a Kubernetes service but you can easily change that yourself:

```auto
apiVersion: v1
kind: Service
metadata:
  name: my-custom-transport
spec:
  selector:
    common.k8s.elastic.co/type: elasticsearch
    elasticsearch.k8s.elastic.co/cluster-name: $YOUR_CLUSTER_NAME
  type: LoadBalancer 
  ports:
  - protocol: TCP
    port: 9300
    targetPort: 9300

```

Adjust the service type as needed: if you are not running in a managed Kubernetes offering of one of the public cloud providers then `LoadBalancer` probably does not make sense. If your client is connecting from within the same Kubernetes cluster than type `ClusterIP` will be sufficient etc.

Also note that we are probably going to add this service in a future release of ECK, but in the meantime you can create it yourself.

---

<div class="post-metadata">

**Author:** ![dtapia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dtapia/32/85717_2.png) [@dtapia](https://discuss.elastic.co/u/dtapia)\
**Post date:** [March 13, 2020, 9:55pm UTC](https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542/3 "2020-03-13T21:55:21Z")

</div>

Thnx @pebrc for your reply, I managed to do as you instructed but spring boot apps can't seem to connect on port 9300. If I do a curl on port 9200

```auto
{
  "name" : "r4e-elasticsearch-comments-cluster-es-default-0",
  "cluster_name" : "r4e-elasticsearch-comments-cluster",
  "version" : {
    "number" : "6.8.6",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_snapshot" : false,
    "lucene_version" : "7.7.2",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

```

but on port 9300

```auto
 curl r4e-elasticsearch-comments-cluster-es-external:9300
curl: (52) Empty reply from server

```

Which is different response when I query our server on the TCP port

```auto
curl elasticsearch-legacy.prod.eng-us.:9300
This is not an HTTP port

```

Is there some setting I have to enable for this to work properly?

---

<div class="post-metadata">

**Author:** ![TimWardFS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timwardfs/32/65108_2.png) [@TimWardFS](https://discuss.elastic.co/u/TimWardFS)\
**Post date:** [April 7, 2020, 12:54pm UTC](https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542/4 "2020-04-07T12:54:09Z")

</div>

Hi, did you ever make this work?

---

<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:** [November 4, 2022, 7:47am UTC](https://discuss.elastic.co/t/no-endpoints-for-port-9300/221542/5 "2022-11-04T07:47:17Z")

</div>


