3 ms·
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 targetin
by glitchcrab 2y 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 https://github.com/danielfoehrKn/kubeswitch
- arccy 2y agowhether 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
- glitchcrab 2y agoSure, but I'm switching between AWS, Azure and vSphere clusters regularly and they all behave differently.
- Telemaco019 2y agoCool project, I didn't know it. I love the idea, thanks for sharing it!