Hacker News new | ask | show | jobs
by glitchcrab 640 days ago
I toyed with the idea of having a kubeconfig per cluster some time ago, but I work with 10s of clusters on a daily basis (often with multiple terminals targeting the same cluster) and having to auth every single time would have been too much of a pain.

Instead I went with kubeswitch which still gives you a different kubeconfig per terminal but allows you to re-use existing sessions.

https://github.com/danielfoehrKn/kubeswitch

2 comments

Cool project, I didn't know it. I love the idea, thanks for sharing it!
whether a reauth is necessary depends on your k8s setup a lot of the cloud ones only configure kubeconfig to call an external command, which can share auth state between terminals
Sure, but I'm switching between AWS, Azure and vSphere clusters regularly and they all behave differently.