Manage your Kubernetes Context Directly from VS Code
Do you keep deploying your applications into the wrong namespace? Now you can see and manage your Kubernetes context directly from VS Code with our new extension 🚀.
Visual Studio Code has taken the IDE world by storm. On Stack Overflow’s 2019 Developer survey it already appears as the most popular development environment. I’m a big fan of it, mostly because of the extension model. These days, I spend most of my coding time in VS Code windows.
When I’m building Cloud Native applications, I use namespaces extensively. I have dedicated Kubernetes namespace for every application I’m working on, and then I also create one for every branch I’m working on. This lets me switch very quickly not only between branches, but also between different versions of an entire application.
I love working in this way, but every now and then I’ll lose track of which namespace I’m on and I’ll end up running
kubectl apply -f deployment.yaml in the wrong place. Nothing catastrophic (gotta love this whole infrastructure as code trend), but it makes me lose my flow 😒. On my terminal I use this plugin, but I couldn’t find anything like this for my IDE.
Like everything else we do around here, we build this extension to make our lives as Cloud Native Developers easier than ever. Install the Kubernetes context extension, reload your VS Code instance, and your current context name and namespace will be displayed in the bottom right of the screen. Need to change it? Click on the status bar, and select another one, without losing your flow.