# Elastic and Kibana on Different port

**URL:** <https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347>\
**Category:** Kibana\
**Created:** [June 2, 2020, 1:22pm UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347 "2020-06-02T13:22:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastermind](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mastermind](https://discuss.elastic.co/u/mastermind)\
**Post date:** [June 2, 2020, 1:22pm UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/1 "2020-06-02T13:22:46Z")

</div>

Hi I am trying to deploy 2 elastic and 2 Kibana on Kubernetes  
1- 1st cluster Elastic and Kibana on the default ports (Elastic=9200 and Kibana=5601) configured without any problem.  
2- 2nd cluster Elastic2 and Kibana2 on different ports (Elastic=9500 and Kibana=5801) but I am not able to achieve this.  
I am able to access elastic on port 9500 but I am not able to access Kibana port can someone help me how I can do that  
I checked the Kibana.yml file but I still saw the default port of elastic is same  
I tried to edit but not able to edit the kibana.yml file

Can some one help me how I can configure elastic and Kibana on a different port as I mentioned above?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 3, 2020, 12:46pm UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/2 "2020-06-03T12:46:06Z")

</div>

How are you running Kibana on Kubernetes? Are you using [ECK](https://www.elastic.co/guide/en/cloud-on-k8s/current/index.html)? What does your ECK configuration look like? Did you specify the elasticsearch port in the configuration?

[https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-kibana-connect-to-es.html#k8s-kibana-eck-managed-es](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-kibana-connect-to-es.html#k8s-kibana-eck-managed-es)

---

<div class="post-metadata">

**Author:** ![mastermind](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mastermind](https://discuss.elastic.co/u/mastermind)\
**Post date:** [June 3, 2020, 1:52pm UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/3 "2020-06-03T13:52:42Z")

</div>

Here are my yml files you can check thats how i am deploying

Cluster 1

Elastic1  
apiVersion: [elasticsearch.k8s.elastic.co/v1](http://elasticsearch.k8s.elastic.co/v1)  
kind: Elasticsearch  
metadata:  
name: escl1  
spec:  
version: 7.7.0  
nodeSets:

- name: default  
config:  
node.attr.attr\_name: attr\_value  
node.master: true  
node.data: true  
node.ingest: true  
node.ml: true  
node.store.allow\_mmap: false  
podTemplate:  
metadata:  
labels:  
foo: escl1  
spec:  
containers:  
- name: elasticsearch  
resources:  
limits:  
memory: 1Gi  
cpu: 1  
count: 1  
volumeClaimTemplates:
  - metadata:  
name: elasticsearch-data  
spec:  
accessModes:

* * *

Kibana1

apiVersion: [kibana.k8s.elastic.co/v1](http://kibana.k8s.elastic.co/v1)  
kind: Kibana  
metadata:  
name: kb1  
spec:  
version: 7.7.0  
count: 1  
elasticsearchRef:  
name: "escl1"  
http:  
service:  
spec:  
type: LoadBalancer  
tls:  
selfSignedCertificate:  
disabled: true  
podTemplate:  
metadata:  
labels:  
foo: kb1  
spec:  
containers:  
- name: kibana  
resources:  
limits:  
memory: 0.5Gi  
cpu: 0.5

+++++++++++++++++++++++++++++++

Cluster 2

Elastic2

apiVersion: [elasticsearch.k8s.elastic.co/v1](http://elasticsearch.k8s.elastic.co/v1)  
kind: Elasticsearch  
metadata:  
name: escl2  
spec:  
version: 7.7.0  
nodeSets:

- name: default  
config:  
node.attr.attr\_name: attr\_value  
node.master: true  
node.data: true  
node.ingest: true  
node.ml: true  
node.store.allow\_mmap: false  
podTemplate:  
metadata:  
labels:  
foo: escl2  
spec:  
containers:  
- name: elasticsearch  
count: 1  
volumeClaimTemplates:
  - metadata:  
name: elasticsearch-data  
spec:  
accessModes:
    - ReadWriteOnce  
resources:  
requests:  
storage: 300Gi  
http:  
service:  
spec:  
type: LoadBalancer  
ports:
      - port: 9500  
protocol: TCP  
targetPort: 9200  
tls:  
selfSignedCertificate:  
disabled: true

* * *

Kibana 2  
apiVersion: [kibana.k8s.elastic.co/v1](http://kibana.k8s.elastic.co/v1)  
kind: Kibana  
metadata:  
name: kb2  
spec:  
version: 7.7.0  
count: 1  
elasticsearchRef:  
name: "escl2"  
http:  
service:  
spec:  
type: LoadBalancer  
ports:  
- port: 5901  
protocol: TCP  
targetPort: 5601  
tls:  
selfSignedCertificate:  
disabled: true  
template:  
metadata:  
labels:  
foo: kb2  
spec:  
containers:  
- name: kibana  
resources:  
limits:  
memory: 0.5Gi  
cpu: 0.5  
env:  
- name: ELASTICSEARCH\_URL  
value: [http://elasticsearch:9500](http://elasticsearch:9500)

---

<div class="post-metadata">

**Author:** ![mastermind](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mastermind](https://discuss.elastic.co/u/mastermind)\
**Post date:** [June 4, 2020, 9:01am UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/4 "2020-06-04T09:01:46Z")

</div>

@Nathan_Reese

Can you please check and update.

Thank you

---

<div class="post-metadata">

**Author:** ![mastermind](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mastermind](https://discuss.elastic.co/u/mastermind)\
**Post date:** [June 8, 2020, 5:26pm UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/5 "2020-06-08T17:26:42Z")

</div>

hi

Any update on it.

Thankyou

---

<div class="post-metadata">

**Author:** ![mastermind](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mastermind](https://discuss.elastic.co/u/mastermind)\
**Post date:** [June 10, 2020, 11:49am UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/6 "2020-06-10T11:49:20Z")

</div>

I think no one know how to deploy on different port

---

<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:** [July 8, 2020, 11:49am UTC](https://discuss.elastic.co/t/elastic-and-kibana-on-different-port/235347/7 "2020-07-08T11:49:27Z")

</div>

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