Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Can't redirect to k8s dashboard management page #5779

Open
Ivens-Zhang opened this issue May 17, 2022 · 2 comments
Open

Can't redirect to k8s dashboard management page #5779

Ivens-Zhang opened this issue May 17, 2022 · 2 comments

Comments

@Ivens-Zhang
Copy link

Ivens-Zhang commented May 17, 2022

Organization Name: SHAIIC

Short summary about the issue/question: After inputting the token, the K8S dashboard still can't redirect to the management page.

Brief what process you are following:

  1. I login the master node by SSH, and use this script to get the token
root@master# sudo su && kubectl -n kube-system get secret $(kubectl -n kube-system get sa/kubernetes-dashboard-openpai -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}" && echo ""
eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJrdWJlcm5ldGVzLWRhc2hib2FyZC1vcGVucGFpLXRva2VuLTlxcWMyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6Imt1YmVybmV0ZXMtZGFzaGJvYXJkLW9wZW5wYWkiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI4Mzg4YmUyNS0xN2NlLTQyYjgtYjhjNi1hYjIzNjg2YTc1ZmEiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6a3ViZS1zeXN0ZW06a3ViZXJuZXRlcy1kYXNoYm9hcmQtb3BlbnBhaSJ9.D07dBeHXx9QvjnLyTQvBJuho9nWalfini-Z_NxnC2uDFaGPJxalrxXiP7CP96BzyljjofK7YJL8YZoLlpGYI6YxCsStE38mxNrpyaGkOh97f7QSfIRxEw7HcYGEnKZfEIWeC2fR1FifWJ-aW5zYCuNsGFKRpT99EU-h-Zcgwd7dwGMDKUSFfGJt7lmziKv6dRdT1-CPGsu25tDsDGSgenJJVHd0v6-SUGBMpoJig3rEIOEob7ZuIuH6r7eKzQpVt9uI6rDMXk4jblos-EUTiFtLDQWFTBD9ctkTCniBVxdEEkyY5_dbpinO3WiFOuJs2hs_VcanNKo-Lf46DiSCB9A
  1. then I input this token to my PAI k8s dashboard login view:

image

  1. I click "login" button, but nothing happen; I tried to use an incorrect token, it showed the massage:

image

  • OpenPAI version: v1.8.0
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): Ubuntu 18.04.6 LTS
  • Kernel (e.g. uname -a): Linux openpai-v18-master 5.4.0-1078-azure 81~18.04.1-Ubuntu SMP Mon Apr 25 23:16:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.): Azure VM Standard_D4s_v3
@Binyang2014
Copy link
Contributor

Binyang2014 commented May 18, 2022

Are you using https? k8s dashboard can only be accessed via https

@Ivens-Zhang
Copy link
Author

Thanks, I will have a try.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants