openscanhub: add pvc for /var/lib/osh path

This path stores all the files generated for a task and it is going to
expand in size over time.

Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
This commit is contained in:
Siteshwar Vashisht 2023-11-22 15:45:05 +01:00 committed by kevin
parent 0d7e4db134
commit 14b561e2d5
2 changed files with 24 additions and 0 deletions

View file

@ -33,3 +33,8 @@
tags:
- apply-appowners
when: env == "staging"
- role: openshift/object
app: openscanhub
template: pvc-var-lib-osh.yml
objectname: pvc-var-lib-osh.yml
when: env == "staging"

View file

@ -0,0 +1,19 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-var-lib-osh
spec:
volumeName: fedora-openscanhub-var-lib-osh-{{env_short}}
accessModes:
- ReadWriteOnce
resources:
requests:
# This should be manually expanded when production
# has gone beyond this limit.
{% if env == "staging" %}
storage: 32Gi
{% else %}
storage: 512Gi
{% endif %}
storageClassName: 'ocs-storagecluster-cephfs'
volumeMode: Filesystem