5 steps to bring DevX automation to your company
Get the guide

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.

Until now…

Manage your Kubernetes context from VS Code

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.

I hope you find it as useful as we do. Let us know what you think about it on Twitter, or in our #okteto channel in the Kubernetes community Slack.

Ramiro BerrellezaCEO & Co-founder View all posts

Automate Provisioning Any Dev Resource on Any Cloud Provider With Pulumi and Okteto

The Value It is common in today's landscape to build microservices-based applications that leverage resources like RDS databases, storage buckets, etc...

October 19, 2023
Avatar of Arsh SharmaAvatar of Arsh SharmaArsh Sharma

How Developers Can Seamlessly Collaborate When Building Microservice Apps

Building microservices based applications is inherently challenging. Given the multitude of components involved, it is unrealistic to expect any individual...

October 10, 2023
Avatar of Arsh SharmaAvatar of Arsh SharmaArsh Sharma