Guillaume Boutry af1d400828
[glance-k8s] add image-cap-size option
Add image-cap-size option to glance charm. If no ceph relation, check
limit is smaller than persistent volume's capacity.

Change-Id: I772cc9b4a75fbbe7216e07088b14bdf57b195908
2024-05-10 21:13:50 +02:00

82 lines
2.0 KiB
YAML

# Copyright 2021 Canonical Ltd
# See LICENSE file for licensing details.
name: glance-k8s
maintainer: OpenStack Charmers <openstack-charmers@lists.ubuntu.com>
summary: OpenStack Image Registry and Delivery Service
description: |
The Glance project provides an image registration and discovery service
and an image delivery service. These services are used in conjunction
by Nova to deliver images from object stores, such as OpenStack's Swift
service, to Nova's compute nodes.
version: 3
bases:
- name: ubuntu
channel: 22.04/stable
assumes:
- k8s-api
- juju >= 3.1
tags:
- openstack
- storage
- misc
source: https://opendev.org/openstack/charm-glance-k8s
issues: https://bugs.launchpad.net/charm-glance-k8s
containers:
glance-api:
resource: glance-api-image
mounts:
- storage: local-repository
# A persistent storage place to store glance images in a local file
# based repository. This must be shared storage in order to support a
# highly available glance registry.
location: /var/lib/glance/images
resources:
glance-api-image:
type: oci-image
description: OCI image for OpenStack Glance
# ghcr.io/canonical/glance-api:2024.1
upstream-source: ghcr.io/canonical/glance-api:2024.1
storage:
local-repository:
type: filesystem
minimum-size: 10GiB
description: |
A local filesystem storage repository for glance images to be saved to.
Note, this must be shared storage in order to support a highly
available glance image registry.
requires:
database:
interface: mysql_client
limit: 1
ingress-internal:
interface: ingress
optional: true
limit: 1
ingress-public:
interface: ingress
limit: 1
identity-service:
interface: keystone
limit: 1
amqp:
interface: rabbitmq
optional: true
ceph:
interface: ceph-client
optional: true
receive-ca-cert:
interface: certificate_transfer
optional: true
provides:
image-service:
interface: glance
peers:
peers:
interface: glance-peer