Bridge to Kubernetes GA

Nick Greenfield

We are super excited to announce General Availability of Bridge to Kubernetes. 

Formerly known as Local Process with Kubernetes, Bridge to Kubernetes is an iterative development tool offered in Visual Studio and VS Code that allows developers to write, test and debug microservice code on their development workstations while consuming dependencies and inheriting existing configuration from a Kubernetes environment. 

Image connect graphic non isolated

Simplifying Microservice Development     

Microservice applications are comprised of many services, often calling each other. Each service has its own configuration and dependencies, making setting up and running the application locally time-consuming and complex.   

By using Bridge to Kubernetes to connect your development workstation to your Kubernetes cluster, you eliminate the need to manually source, configure and compile external dependencies on your development workstation. Environment variables, connection strings and volumes from the cluster are inherited and available to your microservice code running locally.

Image bridge menu

Develop Microservice Apps Faster    

Bridge to Kubernetes extends the Kubernetes perimeter to your development workstation, allowing you to sidestep operational complexities of building and deploying your code into the cluster to test, debug and rapidly iterate.     

Docker and Kubernetes configurations are not required when using Bridge to Kubernetes.Simply run code natively on your development workstation using familiar development tools and practices, while connected to the Kubernetes cluster, allowing you to develop, test and debug in the context of the larger application. 

Debugging and testing end-to-end  

Bridge to Kubernetes enables debugging and testing end-to-end in the context of the larger application. Select an existing service in the cluster to route to your development machine where an instance of that service is running locally. Requests initiated through the application running in Kubernetes will route between services running in the cluster. When the service you are debugging is called, the request is redirected to your development machine to your locally running version. Your local changes are executed, and the request is completed transparently for the other services. 

Image connection

Work in isolation in a shared development environment 

In clusters where developers are working together on the same application at the same time, there is a significant risk of interfering with another developers’ debugging session.  This is because there is only one copy of each service deployed to the application namespace. To enable developers to work more effectively together and isolate their inner loop from the rest of the teamthey need a copy of the service to work on exclusively.   

Bridge to Kubernetes supports working in isolation in a shared cluster. By selecting the work in isolation mode during configuration, Bridge to Kubernetes will setup the isolated service, as well as a specific subdomain URL to make sure that only traffic using that URL is redirected to your development workstation.

 

Public Previews 

Support for any Kubernetes 

Bridge to Kubernetes is expanding support to any Kubernetes.  Whether youre connecting to your development cluster running in the cloud, or to your local Kubernetes cluster, Bridge to Kubernetes is available for your end-to-end debugging scenarios.

Support for Bridge to Kubernetes on any Kubernetes cluster is initially available in the VS Code experience and soon after in Visual Studio.

Increase confidence in pull requests with review apps

Bridge to Kubernetes lets you work in isolation from colleagues using the same cluster and namespace by leveraging our new routing technology. You can also apply the isolation capability outside the Bridge to Kubernetes experience, such as directly from a GitHub pull request. You can test changes from a PR directly in Kubernetes before the pull request is merged into the main branch of your repo. Having a running application to review changes of a pull request can increase confidence in proposed code changes. Testing your changes in the running application can also help other team members, such as product managers and designers, see the results of the development work even in the early stages.

For more information, including how to get started with the pull request review apps, see here.

Image Screen Shot 2020 09 16 at 2 51 03 PM

Get started today and let us know about your experience!    

Start debugging your Kubernetes applications today using Bridge to Kubernetes. Download the extensions from the Visual Studio anVS Code marketplaces and follow the quickstarts on how to use Bridge to Kubernetes. 

We’d love to hear about your experience with Bridge to Kubernetes and where we can improve.  For issues or comments, please visit our GitHub issues page. 

15 comments

Discussion is closed. Login to edit/delete existing comments.

  • Brian Baker 0

    Does this support debugging of Node apps, or just .NET?

    • Nick GreenfieldMicrosoft employee 0

      Hi Brian,

      Thanks for your question. The Bridge to Kubernetes experience in the VS Code extension is not tied to any specific language. You can use Bridge to debug your Node apps. This quickstart walks you through debugging a node microservice which makes up part of a polyglot application.

  • Mike Goatly 0

    Thanks Nick – how does relate/compare to Azure Dev Spaces?

    • Nick GreenfieldMicrosoft employee 0

      Hi Mike,

      Great question.

      In short, Bridge to Kubernetes offers many of the key development scenarios Dev Spaces supports, but with an improved lighter weight solution.

      Dev Spaces helps developers work with code running directly in their cluster, avoiding the need for replicating a local environment that closely matches the deployed environment. This approach improves certain aspects of development, such as providing high fidelity, but it also introduces a prerequisite of learning additional concepts such as Docker, Kubernetes, and Helm before starting to use Dev Spaces.

      Bridge to Kubernetes reduces inner loop complexities by side-stepping the need to create Docker and Kubernetes configurations, allowing developers to focus purely on the business logic of their code. Developers can work directly on their development computer while interacting with the rest of the services running in their cluster. This approach takes advantage of the familiarity and speed of running locally, while sharing the dependencies and environment provided by their cluster. Bridge to Kubernetes also takes advantage of the fidelity and scaling that comes from running in Kubernetes.

      • Mike Goatly 0

        Nice. I think I’ve got it now. I’m going to try to find some time with it to see if it can replace my current local dev set-up – that would be a huge win.

  • Narcis Dumitrescu 0

    Awesome!!! We’ve been missing a tool like this for quite a while, especially with the advent of microservices and the need to just debug/test just a “cell” of the whole system. Both this and Dev Center are wonderful additions to the .net developer toolbelt . Project Tye is worth mentioning too.

  • David Lee 0

    This seems like a great tool with lots of increased productivity potential. Looking forward to improvements like,
    1. Handling StatefulSets
    2. Launch local process that’s being built & ran in VS Code dev containers (get error saying not supported yet)
    3. Cmd line to establish/disconnect bridge connection as part of a script rather than from VS Code IDE (couldn’t find documentation if there is a way)

  • Rav 0

    This does not work with Windows containers and MVC applications built on top of .NET framework 4.5+. I don’t even see this option in Visual Studio unless I use a .NET Core project. Even when I tried .NET Core project targeting Windows, the pods goes into error state in Kubernetes. So I guess this works only for .NET Core targeting Linux containers. Do you have any plans to bring support for .NET Framework and Windows containers?

    • Nick GreenfieldMicrosoft employee 0

      Hi Rav,

      Thanks for your question. At the moment, Bridge to Kubernetes is limited to .NET Core targeting Linux containers. We are working through supporting Windows containers and will hopefully have a preview available in the next few months.

  • Jamy Cuijpers 0

    What happens if we have a service that connects to an Azure Cosmos DB/SQL Server resource that has a strict firewall configuration, only allowing traffic from the AKS nodes. If I run that service locally using Bridge to Kubernetes, is there a possibility for the outbound traffic to be routed back through the cluster? My observation is that the outbound traffic is directly sent from my development workstation, and is therefore blocked by the firewall.

    Any advice for working with a scenario like this?

  • Nicolas CUVILLIER 0

    Nick, I know you’re working in vs team, but did you heard any future support of this feature in vs code ? or vs / OSX ?
    Thanks

  • Aleksandar Misljenovic 0

    I’m facing issues when I try to run it in Visual Studio 2019 I get an error: ‘Common port ’80’ is in use on your machine and may prevent Bridge to Kubernetes from forwarding network traffic.’. Can you maybe help me with this?

  • Schaff, Stephen 0

    First, this is AWESOME!! I am really excited to give this a try. And the move to make with work with my On Premises Kubernetes makes me really happy!

    Second, I am noticing that VS Code is the IDE that is first getting features (as is the case here with “Any Kubernetes” support).

    It seems odd leave the paying customers waiting for the features while you deliver first to the free product line (Visual Studio is not free for most of us).

    Is Microsoft starting to shift away from Visual Studio? I have tried VS Code a few times, but always end up preferring Visual Studio. But as I see more and more features coming to VS Code first, I am wondering if I need to force the switch.

  • Leo Zhang 0

    Will Bridge to Kubernetes support other IDEs besides Visual Studio and Visual Studio Code, such as IntelliJ or Eclipse?

  • Sepehr Shokati 0

    This does not work with Windows containers and MVC applications built on top of .NET framework 4.5+. I don’t even see this option in Visual Studio unless I use a .NET Core project. Even when I tried .NET Core project targeting Windows, the pods goes into error state in Kubernetes. So I guess this works only for .NET Core targeting Linux containers. Do you have any plans to bring support for .NET Framework and Windows containers?
    my website design by C# ضدکف

Feedback usabilla icon