This article guides deploying a Kibana pod on a Kubernetes cluster, covering verification, manifest review, and connectivity with Elasticsearch.
Hello and welcome back!In this article, we will guide you through deploying a Kibana pod on your Kubernetes cluster. You will learn how to verify your cluster’s status, review the necessary deployment and service manifests, and confirm that Kibana connects effectively with Elasticsearch.
Resource Kind: A Deployment used to manage the lifecycle of the Kibana pod.
Namespace: The efk namespace.
Replica Count: A single instance (replica) of Kibana.
Container Configuration: Utilizes the official Kibana Docker image from Elastic and exposes port 5601.
Ensure that the versions of Elasticsearch and Kibana are compatible. Always review the corresponding release notes from Elastic before selecting your Docker image.
Uses the NodePort type to make Kibana accessible externally.
Routes traffic from the cluster’s internal port 5601 to the node’s port 30601.
Targets pods labeled with app: kibana in the efk namespace.
By default, the Kibana Docker image searches for Elasticsearch within the same namespace. Ensure that Elasticsearch is deployed in the efk namespace to allow automatic connection.
Follow these steps to access the Kibana user interface:
Identify the NodePort: In our example, the NodePort is 30601.
Access through Browser: Open your web browser and enter the following URL, replacing \<NODE_IP> with the IP address of your node:http://<NODE_IP>:30601
Once the Kibana UI loads, click on “Explore on my own” (or a similar option) and proceed to the “Dev Tools” section. This interactive console allows you to run queries against the connected Elasticsearch cluster.
In this guide, you learned how to deploy and expose Kibana on your Kubernetes cluster within the efk namespace. By carefully following the verification, deployment, and connectivity tests, you can replicate this setup in your environment—whether on-premises or in the cloud.Happy deploying, and see you in the next article!