K9s: Unable to switch between contexts

Created on 5 Jun 2020  ·  7Comments  ·  Source: derailed/k9s






Describe the bug
Switching between contexts hangs up

To Reproduce
Steps to reproduce the behavior:

  1. Start k9s in a specific context k9s --context my-context-1
  2. Access the context list :ctx
  3. Select one context to switch into
  4. k9s interface stalls, need to kill it (with kill <k9s_pid>)

Expected behavior
No stalling, able to switch to the targeted context.

Versions (please complete the following information):

  • OS: Ubuntu 19.10
  • K9s 0.20.4 (commit: 51c6f70d01ccd13c06f68445327bb5e40ac73a3f)
  • K8s Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Additional context
The targeted context is reachable since I can successfully execute kubectl get nodes on it

Here are the logs:

2:40PM INF 🐶 K9s starting up...
2:40PM DBG Active Context "my-context-1"
2:40PM INF ✅ Kubernetes connectivity
2:40PM DBG [Config] Saving configuration...
2:40PM INF No context specific skin file found -- /home/mad/.k9s/my-context-1_skin.yml
2:40PM INF No skin file found -- /home/mad/.k9s/skin.yml. Loading stock skins.
2:40PM DBG CURRENT-NS "" -- No active namespace specified
2:40PM INF No namespace specified using cluster default namespace
2:40PM DBG Factory START with ns `""
2:40PM DBG CustomView watching `/home/mad/.k9s/views.yml
2:40PM ERR Custom view load failed /home/mad/.k9s/views.yml error="open /home/mad/.k9s/views.yml: no such file or directory"
2:40PM ERR CustomView watcher failed error="no such file or directory"
2:40PM DBG [Config] Saving configuration...
2:40PM DBG [Config] Saving configuration...
2:40PM DBG TABLE-WATCH "contexts"
2:40PM DBG SWITCH CTX "contexts"--"minikube"
2:40PM DBG Switching context "minikube"
2:40PM DBG TABLE-MODEL canceled -- "contexts"
bug

Most helpful comment

@srilumpa @paulwitt @kapodes Thank you all for reporting this!
Hopefully we're happier on v0.20.5... My bad!
Thank you all for your patience and support!!

All 7 comments

Having the same issue but I am not starting it with --context

Same thing. Can only work with current context from ~/.kube/config. If I try to change to any other via :ctx it completely freezes. MacOS Catalina.

@srilumpa @paulwitt @kapodes Thank you all for reporting this!
Hopefully we're happier on v0.20.5... My bad!
Thank you all for your patience and support!!

@derailed 0.20.5 works as expected 🎉

Works again for me too, thank you for your responsiveness !

@kapodes @bendevcat Woosh! Happy to hear this... Thank you both for reporting back!

Works for me as well. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cdunford picture cdunford  ·  3Comments

kordianbruck picture kordianbruck  ·  3Comments

mimizone picture mimizone  ·  4Comments

pgoodjohn picture pgoodjohn  ·  4Comments

signaleleven picture signaleleven  ·  3Comments