Our great sponsors
-
draft
Discontinued A tool for developers to create cloud-native applications on Kubernetes. (by Azure)
-
azure-voting-app-rust
Port of https://github.com/Azure-Samples/azure-voting-app-redis using Rust and PostgreSQL
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Acorn will take care of creating your Kubernetes manifest files but it expects that you have a Dockerfile ready to containerize your app. Instead of writing a Dockerfile from scratch, we'll use the Draft CLI to generate one for us. Draft is able to detect languages used within your project and generate the appropriate Docker manifest to containerize your app.
git clone --branch postgres https://github.com/pauldotyu/azure-voting-app-rust.git cd azure-voting-app-rust
We need an app to deploy, so clone a version of the Azure Voting App, which I've re-written using Rust (I'm learning Rust so be kind 😅).
Now here's the "gotcha"... you don't need to write Kubernetes manifest files to deploy your app. Instead, you will need to create another type of manifest file named Acornfile. This file is written in JSON-like syntax, feels very similar to a Docker Compose or Helm, and is used to package your application as an Acorn app.
Now here's the "gotcha"... you don't need to write Kubernetes manifest files to deploy your app. Instead, you will need to create another type of manifest file named Acornfile. This file is written in JSON-like syntax, feels very similar to a Docker Compose or Helm, and is used to package your application as an Acorn app.
Using open-source command-line tools Draft and Acorn, we'll containerize and deploy to AKS in just a few steps! Let's go 🚀