Exercise 6 – debugging your application using Bridge to Kubernetes
After deploying your application to an AKS cluster, one of the most common questions is, “how can I debug my application?” There are several ways to answer this question, and in this section, we will explore Bridge to Kubernetes.
Bridge to Kubernetes is an extension that we can add to Visual Studio 2022 or Visual Studio Code that allows us to run and debug our application in a development environment.
Bridge to Kubernetes in Visual Studio 2022
We will open our solution in Visual Studio 2022. Select Extensions at the top, then Manage Extensions. Search for Bridge to Kubernetes
and then click on Download to add it:
Figure 10.32 – Adding the Bridge to Kubernetes extension
Restart Visual Studio and, in the project, select Bridge to Kubernetes from the settings at the top:
Figure 10.33 – Debugging with Bridge to Kubernetes...