How to manage containers

Kubernetes charms use Pebble to manage containers. These guides walk you through the Ops API for interacting with Pebble.

Managing a Kubernetes workload

Your charm manages the workload by defining the Pebble service configuration. Your charm can also use Pebble to run commands and read and write files in the workload container.

Monitoring the workload

Pebble can regularly check that the workload is healthy and report back to your charm.

Custom notices enable the workload to tell your charm that something has happened.

Your charm can configure Pebble so that you can access metrics for services and health checks.