After connecting to Web SSH via Console, kubectl commands sometimes output an error message and do not work.

Print

For example, when you run the following command after connecting to Web SSH via Console: 

$ kubectl get node

error: the server doesn't have a resource type "node"


This happens because authentication information is renewed at every login for security reasons, but there is a bug in the synchronization process which is being addressed and will be included in the next patch.

You can work around this issue by following the method below.

(However, you need admin rights on the corresponding namespace to perform the procedure below.)

  1. Access the cluster Console.

  2. Click the Dashboard button on the dashboard screen.

  3. Move to the Kubernetes Dashboard.

  4. Navigate to the Pods menu on the left sidebar.

  5. Enter web-ssh in the top search bar.

  6. Find the Pod named web-ssh-{username} in the search results.

  7. Click the three dots button on the right of that Pod and select Delete.

  8. After the Pod deletion is complete, try connecting to Web SSH again.

If the problem persists after trying the above method, please submit a ticket.

Câu trả lời này có giúp ích cho bạn không? Yes No

Send feedback
Rất tiếc là chúng tôi không giúp được nhiều. Hãy giúp chúng tôi cải thiện bài viết này bằng phản hồi của bạn.