fedora-ostree-pruner: add storageClassName to pvc template
Since there is no PV fedora-ostree-content-volume-2 on stg the volumeName: "fedora-ostree-content-volume-1" was added. We use ocs-storagecluster-cephfs to keep the ReadWriteMany functionality. If the RBD volume is required, then use storageClassName: ocs-storagecluster-ceph-rbd. ODF will provision a new volume automatically. ReadWriteMany cannot be used in a Filesystem mode with RBD.
This commit is contained in:
parent
8483147eb9
commit
9179b26777
1 changed files with 7 additions and 0 deletions
|
@ -8,9 +8,16 @@ kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: fedora-ostree-content-volume
|
name: fedora-ostree-content-volume
|
||||||
spec:
|
spec:
|
||||||
|
# ocs-storagecluster-cephfs to use `ReadWriteMany` functionality
|
||||||
|
storageClassName: "ocs-storagecluster-cephfs"
|
||||||
# fedora-ostree-content-volume-2 is one of two PVs that share
|
# fedora-ostree-content-volume-2 is one of two PVs that share
|
||||||
# the fedora-ostree-content NetApp volume
|
# the fedora-ostree-content NetApp volume
|
||||||
|
{% if env == "production" %}
|
||||||
volumeName: "fedora-ostree-content-volume-2"
|
volumeName: "fedora-ostree-content-volume-2"
|
||||||
|
{% elif env == "staging" %}
|
||||||
|
# fedora-ostree-content-volume-2 is not available in staging
|
||||||
|
volumeName: "fedora-ostree-content-volume-1"
|
||||||
|
{% endif %}
|
||||||
# These values are mostly ignored since we're using a named
|
# These values are mostly ignored since we're using a named
|
||||||
# volume, but are required.
|
# volume, but are required.
|
||||||
accessModes:
|
accessModes:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue