Skip to content

Commit

Permalink
Update docs for 1.24+ (#6967)
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed May 31, 2022
1 parent b43c727 commit f78bd53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aio/develop/npm-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ else
echo "1. Run terminal for dashboard container."
echo " docker exec -it k8s-dashboard-dev gosu user bash"
echo "2. Run following to get token for logging into dashboard."
echo " kubectl -n kubernetes-dashboard get secrets \$(kubectl -n kubernetes-dashboard get sa kubernetes-dashboard -ojsonpath=\"{.secrets[0].name}\") -ojsonpath=\"{.data.token}\" | echo \"\$(base64 -d)\""
echo " kubectl -n kubernetes-dashboard create token kubernetes-dashboard"
fi
# Start dashboard.
echo "Start dashboard in production mode"
Expand Down
2 changes: 1 addition & 1 deletion docs/user/access-control/creating-sample-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ subjects:
Now we need to find the token we can use to log in. Execute the following command:

```shell
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
kubectl -n kubernetes-dashboard create token admin-user
```

It should print something like:
Expand Down

0 comments on commit f78bd53

Please sign in to comment.