Microsoft’s is working on introducing better ways to support developers building containerized applications that target Kubernetes using Visual Studio. On Friday released a preview of the first version of the “Visual Studio Kubernetes Tools,” which are designed to simplify Kubernetes experience for Visual Studio developers.
“We’ve heard that it can be challenging to create Dockerfiles, Helm charts, and other configuration-as-code files required to create container images and deploy them to Kubernetes,” wrote Microsoft. And taking “your code from Visual Studio to your Kubernetes cluster requires memorizing some pretty complicated CLI commands.”
Now, these tools give developers an ability to easily create a new “Container Application for Kubernetes” project, or add “Kubernetes support to any existing .NET Core web application.” When any of the two is done, Visual Studio will automatically create a Dockerfile and a Helm chart for the project. Then, just create a container image to run an application, or use these files to deploy to any Kubernetes cluster.
In addition, Visual Studio Kubernetes Tools can also be integrate with “Azure Dev Spaces,” which provides a rapid and iterative development experience right in Azure Kubernetes Service.
Also, those using Azure Kubernetes Service can use the new “Publish to Azure AKS” option to deploy to an AKS cluster directly from Visual Studio.
Here is an image of Azure AKS option in Solution Explorer: