Task: How to add init containers to your charm's Pod

If you’re writing charms for Kubernetes workloads, you may wish t

Init containers provide an opportunity for tasks to be carried out before the application has started up. Refer to the [Kubernetes documentation about init containers] for information about whether they are appropriate for your situation.

Include an initContainers: block at the base of the podspec. It accepts an array of container definitions.

- ...

Is there any reference charmed application, which can be tried out?

Is it possible to add a layer for init container using pebble