How to define a resource for your charm
This document shows how to define a resource (or more) for your charm.
To define a charm’s resources you must edit the
metadata.yaml file of the charm.
resources is defined as a top-level YAML map, where each key in the map is the name of a resource, that can map to the following fields:
||Type of the resource. Supported values are
||Description of the resource|
||Name of the file resource|
Kubernetes charms must declare an
oci-image resource for each container they define in the
An example resource definition:
# ... resources: someresource: type: file filename: superdb.bin description: the DB with needed info app-image: type: oci-image description: OCI image for app # ...
Last updated 1 year, 4 months ago.