Visual Studio Tools for Kubernetes
The Visual Studio Kubernetes Tools help streamline the development of containerized applications targeting Kubernetes. Visual Studio can automatically create the configuration-as-code files needed to support Kubernetes deployment, such as Dockerfiles and Helm charts, and leverage Azure Dev Spaces to rapidly iterate on and debug code running in Azure Kubernetes Service (AKS).
Getting started with Kubernetes development in Visual Studio is simple:
If you wish to debug using Azure Dev Spaces, you will need an Azure Kubernetes Service (AKS) cluster. For more details, please see the Azure Dev Spaces quickstart
If you wish to debug code running in Docker containers on your development workstation, you will also need Docker for Windows. Docker for Windows is not required for debugging using Azure Dev Spaces.
Use the new Container Application for Kubernetes template to quickly create a new ASP.NET web application project with a Dockerfile and Helm chart pre-created for you, suitable for deploying to Kubernetes.
Alternatively, you can add Kubernetes support to an existing ASP.NET web application project by right clicking on the project in Solution Explorer and clicking Add > Container Orchestrator Support and selecting Kubernetes/Helm.
To debug your project using Azure Dev Spaces, ensure that Azure Dev Spaces is set as the debug launch target.
Then, just press F5! Visual Studio will build a container image in Azure, run your application inside it, and open up a debug session to the running container image -- all with the press of a button.