Steps to Install Kubernetes Dashboard
In this blog, we will show you the Steps to Install Kubernetes Dashboard in your environment.
- 2 Node Cluster ( 1 Master VM with 2 Nodes)
- Kubernetes Components
- We have already installed and configured the 2 Node cluster in our demo environment.
- Please check the URL https://www.assistanz.com/steps-to-install-kubernetes-cluster-manually-using-centos-7/ for more information.
- Log in to the kubernetes master server through putty.
- The kubernetes dashboard will not be installed by default. Use the below command to install the dashboard.
- It will take few seconds to complete the installation.
- By default, the dashboard will install with minimum user role privileges.
- To access the dashboard with full administrative permission, create a YAML file named dashboard-admin.yaml.
- Add the below coding in the YAML file and save it.
- kind: ServiceAccount
- Apply the full admin privileges to dashboard service account using the dashboard-admin YAML file.
kubectl create -f dashboard-admin.yaml
- It will take few seconds to apply the settings.
ENABLING THE PROXY
- From the master server, execute the below command to run the kubernetes proxy command in the background.
nohup kubectl proxy --address="192.168.3.81" -p 443 --accept-hosts='^*$' &
Note: We have specified the master kubernetes server IP address in the address option. It may vary based on your environment.
- The proxy address has been added successfully.
- You can verify process status using the below command.
- You can delete the process using the kill command.
kill -9 <process ID>
Example: kill -9 6114
ACCESSING THE DASHBOARD
- Open the web browser from your local PC and access the below URL.
- We can able to access the dashboard through the kubeconfig file or bearer token. We have already provided full admin access to dashboard service account. So just click on SKIP option to access the dashboard.
- Now we will able to view the homepage of the kubernetes dashboard.
Thanks for reading this blog. we hope it was useful for you to learn about installing dashboard on the kubernetes environment.