From caf549386b9fd69f9cb0b8acb90f7cb908b70997 Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Tue, 2 May 2017 22:31:26 -0500 Subject: [PATCH] Glance: make PV flexible This PS makes the PV used for the file backend flexible, allowing operators to specify the annotation and size used/allocated. Change-Id: I6d153143f9cc268c4c543e392ddf115e5db67a57 --- glance/templates/pvc-images.yaml | 4 ++-- glance/values.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/glance/templates/pvc-images.yaml b/glance/templates/pvc-images.yaml index 0d1d8663fc..469ee42940 100644 --- a/glance/templates/pvc-images.yaml +++ b/glance/templates/pvc-images.yaml @@ -18,10 +18,10 @@ apiVersion: v1 metadata: name: glance-images annotations: - volume.beta.kubernetes.io/storage-class: general + {{ .Values.volume.class_path }}: {{ .Values.volume.class_name }} spec: accessModes: [ "ReadWriteOnce" ] resources: requests: - storage: 20Gi + storage: {{ .Values.volume.size }} {{- end }} diff --git a/glance/values.yaml b/glance/values.yaml index a47c7c636d..f99c557c6e 100644 --- a/glance/values.yaml +++ b/glance/values.yaml @@ -152,6 +152,11 @@ ceph: # common/secrets/ceph-client-key glance_keyring: null +volume: + class_path: volume.beta.kubernetes.io/storage-class + class_name: general + size: 2Gi + misc: workers: 8 debug: false