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?
How are you running Kibana on Kubernetes? Are you using ECK? 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
Here are my yml files you can check thats how i am deploying
Cluster 1
Elastic1
apiVersion: 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:
Kibana1
apiVersion: 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
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
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
@Nathan_Reese
Can you please check and update.
Thank you
I think no one know how to deploy on different port