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.
What We'll Cover
- What is Draft?
- Draft basics
- Demo: Developing to AKS with Draft
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.
Catch A Quickstart Guide to Kubernetes Concepts on demand, now!
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.
- '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
- 'draft generate-workflow'': Automatically build out a GitHub Action using the 'draft generate-workflow' command
- '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.
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.
- LAST WEEK for the Cloud Skills Challenge
- Learning Resources: #30DaysOfCloudNative Collection
- Podcast: Containerize apps to AKS with Draft
- Project: Get started with Draft