Back to Minikube

Using the Headlamp Addon

site/content/en/docs/handbook/addons/headlamp.md

1.38.11.1 KB
Original Source

Headlamp Addon

Headlamp is an easy-to-use and extensible Kubernetes web UI.

Enable Headlamp on minikube

To enable this addon, simply run:

shell
minikube addons enable headlamp

Once the addon is enabled, you can access the Headlamp's web UI using the following command.

shell
minikube service headlamp -n headlamp

To authenticate in Headlamp, fetch the Authentication Token using the following command:

shell
export SECRET=$(kubectl get secrets --namespace headlamp -o custom-columns=":metadata.name" | grep "headlamp-token")
kubectl get secret $SECRET --namespace headlamp --template=\{\{.data.token\}\} | base64 --decode

Headlamp can display more detailed information when metrics-server is installed. To install it, run:

shell
minikube addons enable metrics-server	

Testing installation

shell
kubectl get pods -n headlamp

If everything went well, there should be no errors about Headlamp's installation in your minikube cluster.

Disable headlamp

To disable this addon, simply run:

shell
minikube addons disable headlamp