diff --git a/config/samples/backends/README.md b/config/samples/backends/README.md index dc5ca45f..9e5462dd 100644 --- a/config/samples/backends/README.md +++ b/config/samples/backends/README.md @@ -20,6 +20,7 @@ Currently available samples are: - Ceph - NFS - CEPH + NFS +- CEPH + Sparse Image Upload - Cinder backends - Swift @@ -52,6 +53,23 @@ $ make openstack_deploy If we already have a deployment working we can always use `oc kustomize ceph | oc apply -f -`. from this directory to make the changes. +## Ceph with Sparse Image Upload example + +Assuming you are using `install_yamls` and you already have `crc` running you +can use the Ceph example with: + +``` +$ cd install_yamls +$ make ceph TIMEOUT=90 +$ make crc_storage openstack +$ oc kustomize ../glance-operator/config/samples/backends/ceph_thin_provisioning > ~/openstack-deployment.yaml +$ export OPENSTACK_CR=`realpath ~/openstack-deployment.yaml` +$ make openstack_deploy +``` + +If we already have a deployment working we can always use +`oc kustomize ceph | oc apply -f -`. from this directory to make the changes. + ## Cinder examples Once we have `crc` running making a deployment with Cinder as a backend is diff --git a/config/samples/backends/ceph_thin_provisioning/kustomization.yaml b/config/samples/backends/ceph_thin_provisioning/kustomization.yaml new file mode 100644 index 00000000..c7b63349 --- /dev/null +++ b/config/samples/backends/ceph_thin_provisioning/kustomization.yaml @@ -0,0 +1,22 @@ +resources: +- ../ceph/ + +patches: +- target: + kind: OpenStackControlPlane + patch: |- + - op: replace + path: /spec/glance/template/customServiceConfig + value: | + [DEFAULT] + enabled_backends = default_backend:rbd + [glance_store] + default_backend = default_backend + [default_backend] + rbd_store_ceph_conf = /etc/ceph/ceph.conf + store_description = "RBD backend" + rbd_store_pool = images + rbd_store_user = openstack + rbd_thin_provisioning = True +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization