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

[YUNIKORN-2903]modify Dev Environment Setup ServiceAccount token generate guide #492

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
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
23 changes: 8 additions & 15 deletions docs/developer_guide/env_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,16 @@ Dashboard Web UI. The dashboard may be deployed using the following steps:
### Access local Kubernetes cluster

The dashboard as deployed in the previous step requires a token or config to
sign in. Here we use the token to sign in. The token is generated
automatically and can be retrieved from the system.
sign in. Here we use the token to sign in.
chenyulin0719 marked this conversation as resolved.
Show resolved Hide resolved

1. Retrieve the name of the dashboard token:
```shell script
kubectl -n kube-system get secret | grep kubernetes-dashboard-token
```
2. Retrieve the content of the token. Note that the token name ends with a random
5 character code and needs to be replaced with the result of step 1. As an
example:
```shell script
kubectl -n kube-system describe secret kubernetes-dashboard-token-tf6n8
```
3. Copy the token value which is part of the `Data` section with the tag `token`.
4. Select the **Token** option in the dashboard web UI:<br/>
1. Generate default user token:
```shell script
kubectl -n kubernetes-dashboard create token default
```
2. Copy the token.
3. Select the **Token** option in the dashboard web UI:<br/>
![Token Access in dashboard](./../assets/dashboard_token_select.png)
chenyulin0719 marked this conversation as resolved.
Show resolved Hide resolved
5. Paste the token value into the input box and sign in:<br/>
4. Paste the token value into the input box and sign in:<br/>
![Token Access in dashboard](./../assets/dashboard_secret.png)
chenyulin0719 marked this conversation as resolved.
Show resolved Hide resolved

## Local Kubernetes cluster with Minikube
Expand Down