Sunday, July 22, 2018

Dev Spaces for Azure Kubernetes Services Released!

The public preview of Dev Spaces for Azure Kubernetes Services (AKS) has released! Now you can build and debug applications for Kubernetes – only available on Azure

You don’t need to set up your local development to fix the bugs or development issues of complex micro services. To do such a thing it will take some time. It might take days even. Dev Spaces and AKS is the best solution for that. It’s very easy to setup and will take only seconds.

Set Up:
You just need to get ready with your IDE and Azure CLI (Command Line Interface).
Just Create a new Dev Space inside AKS and begin working on any component.

Use following command to Create a new Dev Space inside AKS

azds space select --name testDevSpace

This will create Kubernetes namespace and populates it with only the micro services that are under active development inside your IDE. It takes only few seconds. Not days.

Rapid Code Changes
Let’s write some code! Assume that you’re writing code, but before you’ve pushed to version control. With containers and Kubernetes, the process of writing code can be painfully slow as you wait for container images to build, push to a registry, and deploy to your cluster. 
Dev Spaces will synchronize your code to IDE with live containers running inside AKS using code synchronization technology. With Dev Spaces, changes in your IDE are pushed up to your AKS cluster in seconds.

Remote Debugging for containers
Remote debugging with containers is brittle and difficult to configure. When you are working on container-based micro services are forced to use print line debugging, which is slow and time consuming, especially when your changes depend on a complex set of surrounding services. 
Thanks to t Dev Spaces, a developer can use a simple hostname prefix to work on any service in isolation.
As an example, let’s say you have a service running at that must traverse 10 micro services before it returns a result. If I have a Dev Space named ‘testDevSpace’, Then hit:
This is a unique URL prefix to route through any services under active development.
So that developer can set breakpoints in my IDE on service 3 and service 7 and use 
unmodified instances of the other services without interrupting any of the normal traffic flows. Dev Spaces support .NET core and Node.js as now and more languages will be added recently.

Bootstrap new applications easily
Kubernetes provides the agility, reliability, and scalability benefits. And the community loves the open source ecosystem around Kubernetes. You don’t need the YAML manifests and is Docker files anymore. By using following command Dev Spaces features application scaffolding that makes it easy to bootstrap a new application:

azds prep

This command will create Docker file, Helm chart, and other metadata into your source tree. This makes it easy to containerize and package your application for Kubernetes without having to learn the arcane details. Since the scaffolding becomes a part of your source code, you can tweak the configuration as you see fit. You can also modify your scaffolded assets to help transition your app from development to production.

No comments:

Post a Comment