Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix headlamp addon instructions to use new k8s way of generating a token #20440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions site/content/en/docs/handbook/addons/headlamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ minikube service headlamp -n headlamp
To authenticate in Headlamp, fetch the Authentication Token using the following command:

```shell script
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
```
kubectl create token headlamp --duration 24h -n headlamp
```

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

```shell script
minikube addons enable metrics-server
```
minikube addons enable metrics-server
```

### Testing installation

Expand Down