How to Enable Kubernetes Dashboard Without Proxy
When you deploy a Kubernetes cluster, there are some services that are disabled by default. One of these services is the Kubernetes dashboard. The Kubernetes dashboard offers an interface for monitoring and managing your cluster. With the help of Kubernetes dashboard, we can get more information about our K8S cluster rather than getting stuck in individual nodes or services at any time. In this article, we will explain how to enable Kubernetes dashboard without using a proxy and point K8S master node IP address on each node.
Why Kubernetes Dashboard is Disabled By Default?
Kubernetes dashboard comes disabled by default for two reasons. One, it opens a TCP port (TCP 6443). Two, it requires a kubeconfig file to be present on the machine. If you don’t want the Kubernetes dashboard to be available then you can simply keep it disabled. However, if you want to enable it, you need to follow the steps below. You need to understand that Kubernetes dashboard will be accessible through the network. This means that anyone who has access to the cluster or can see the cluster will be able to use the dashboard too.
How to Enable Kubernetes Dashboard?
In order to enable Kubernetes dashboard, you will need to perform the following steps:
- Open up the kubeconfig file
- Update the kubeconfig file
Start the Kubernetes dashboard Once you have finished these steps, the Kubernetes dashboard will be accessible through the network. You will be able to see the dashboard by visiting the IP address of your Kubernetes master with port 6443.
Enable Kubernetes Dashboard Without Proxy
Before you can enable the Kubernetes dashboard, you will need to make sure that your Kubernetes master node is available. Once you have finished this step, you will need to open up the kubeconfig file. When you open up the kubeconfig file, you will need to find the “apiGateway” section. Once you have found the “apiGateway” section, you will need to change the “disabled” value from true to false. Once you have finished these steps, you will be able to access the Kubernetes dashboard without using a proxy.
Find K8S Master Node IP Address on Each Node
Before you can start using the Kubernetes dashboard, you will need to find the IP address of your Kubernetes master node. You can find the IP address of your master node by doing the following:
- Log in to the Kubernetes master node.
- Go to the terminal and type in “kubectl get nodes”.
Once you have typed in “kubectl get nodes”, you will be able to see the IP address of your Kubernetes master node on each node.
Conclusion
In this article, we have explained why Kubernetes dashboard is disabled by default and how to enable it. There are two ways to do so, one with a proxy and one without. We have also explained how to find the IP address of the Kubernetes master node on each node. Once you have the IP address of your Kubernetes master node, you can start using the dashboard.