Tutorials

Writing a machine charm is not so different from writing a Kubernetes charm, but it is a little bit different. As such, our tutorial comes in two basic flavors, for machines and for Kubernetes. The choice is yours!

Write a machine charm

This tutorial guides you through writing a machine charm that runs a reverse proxy. The tutorial covers typical functionality of a charm, including configuration.

Write a Kubernetes charm

This tutorial guides you through writing a Kubernetes charm for an application. The tutorial covers typical functionality of a charm, including configuration, relations, and actions.

Write a charm for a 12-factor application

To charm a 12-factor style application, you’re able to build a charm by running a Charmcraft command and making a few modifications to the provided content. The Charmcraft tutorials are a great entry point for anyone new to making charms, particularly anyone building or managing applications that use these frameworks: