Managing Multiple Kubernetes Clusters with Konfuse

When I started this new and exciting project at work, I suddenly found myself juggling multiple Kubernetes clusters. Some EKS, some shared, and many with the same generic context names. If you've been there, you know the pain. Merging kubeconfigs should be simple. It's not. The built-in kubectl approach silently drops duplicate entries. No warning. No error. Your cluster access just… vanishes. I'd been bitten by this more than once. So I looked at what was out there kubecm, kubectx, konfig - solid tools, but none of them let me rename clusters and contexts on import while also backing up my config automatically. I kept falling back to a fragile multi-step manual process. Eventually I thought: if this tool doesn't exist, I'll build it. That's how konfuse was born. A single-binary open-source CLI tool (written in Go) that merges kubeconfig files with rename-on-import and automatic backup. One command, no runtime dependencies. konfuse eks-staging.yaml --rename-context staging --rename-cluster eks-staging It also lists your contexts at a glance and cleans up orphaned entries when you delete a context things that take multiple kubectl commands otherwise. I built it to solve my own problem, then decided to make it something others could use too. I wrote up the full story, the problem, what exists today, and how konfuse works in a blog post. Links to the article and the Github are in the comments 👇 If you work with multiple Kubernetes clusters, give it a try and let me know what you think. Stars, feedback, and issues are all welcome! #Kubernetes #DevOps #CLI #OpenSource #Go #KubeConfig

  • No alternative text description for this image
See more comments

To view or add a comment, sign in

Explore content categories