Skip to main content

16 posts tagged with "30daysofcloudnative"

View All Tags

ยท 3 min read
Cory Skimming

It's the final week of #CloudNativeNewYear! This week we'll go further with Cloud-native by exploring advanced topics and best practices for the Cloud-native practitioner. In today's post, we will introduce you to the basics of the open-source project Draft and how it can be used to easily create and deploy applications to Kubernetes.

It's not too late to sign up for and complete the Cloud Skills Challenge!

What We'll Coverโ€‹

  • What is Draft?
  • Draft basics
  • Demo: Developing to AKS with Draft
  • Resources


What is Draft?โ€‹

Draft is an open-source tool that can be used to streamline the development and deployment of applications on Kubernetes clusters. It provides a simple and easy-to-use workflow for creating and deploying applications, making it easier for developers to focus on writing code and building features, rather than worrying about the underlying infrastructure. This is great for users who are just getting started with Kubernetes, or those who are just looking to simplify their experience.

New to Kubernetes?

Draft basicsโ€‹

Draft streamlines Kubernetes development by taking a non-containerized application and generating the Dockerfiles, K8s manifests, Helm charts, and other artifacts associated with a containerized application. Draft can also create a GitHub Action workflow file to quickly build and deploy your application onto any Kubernetes cluster.

  1. 'draft create'': Create a new Draft project by simply running the 'draft create' command - this command will walk you through a series of questions on your application specification (such as the application language) and create a Dockerfile, Helm char, and Kubernetes
  2. 'draft generate-workflow'': Automatically build out a GitHub Action using the 'draft generate-workflow' command
  3. 'draft setup-gh'': If you are using Azure, use this command to automate the GitHub OIDC set up process to ensure that you will be able to deploy your application using your GitHub Action.

At this point, you will have all the files needed to deploy your app onto a Kubernetes cluster (we told you it was easy!).

You can also use the 'draft info' command if you are looking for information on supported languages and deployment types. Let's see it in action, shall we?


Developing to AKS with Draft

In this Microsoft Reactor session below, we'll briefly introduce Kubernetes and the Azure Kubernetes Service (AKS) and then demo how enable your applications for Kubernetes using the open-source tool Draft. We'll show how Draft can help you create the boilerplate code to containerize your applications and add routing and scaling behaviours.


##Conclusion

Overall, Draft simplifies the process of building, deploying, and managing applications on Kubernetes, and can make the overall journey from code to Kubernetes significantly easier.


Resourcesโ€‹