diff --git a/charts/sorcerer/staging/archives-ceph-volume.yaml b/charts/sorcerer/staging/archives-ceph-volume.yaml new file mode 100644 index 00000000..160252dd --- /dev/null +++ b/charts/sorcerer/staging/archives-ceph-volume.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: pv-staging-ceph-archives +spec: + accessModes: + - ReadWriteMany + capacity: + storage: 1Gi + csi: + driver: rook-ceph.cephfs.csi.ceph.com + nodeStageSecretRef: + name: rook-csi-cephfs-node + namespace: rook-ceph + volumeAttributes: + fsName: data + clusterID: rook-ceph + staticVolume: "true" + rootPath: /archives + volumeHandle: pv-staging-ceph-archives + persistentVolumeReclaimPolicy: Retain + volumeMode: Filesystem +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: staging-ceph-archives + namespace: sorcerer +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi + storageClassName: "" + volumeMode: Filesystem + volumeName: pv-staging-ceph-archives diff --git a/charts/sorcerer/staging/kustomization.yaml b/charts/sorcerer/staging/kustomization.yaml index c5123134..229ce589 100644 --- a/charts/sorcerer/staging/kustomization.yaml +++ b/charts/sorcerer/staging/kustomization.yaml @@ -14,6 +14,7 @@ patches: kind: Deployment path: deployment_patch.yaml resources: -- pv.yaml -- pvc.yaml +# - pv.yaml +# - pvc.yaml +- archives-ceph-volume.yaml - ../base diff --git a/charts/sorcerer/values-staging.yaml b/charts/sorcerer/values-staging.yaml index bd5ce31a..2264cfd7 100644 --- a/charts/sorcerer/values-staging.yaml +++ b/charts/sorcerer/values-staging.yaml @@ -14,8 +14,8 @@ ingress: - sorcerer.ekman.oceanbox.io secretName: staging-sorcerer-tls persistence: - # existingClaim: staging-oceanbox-archives - existingClaim: staging-oceanbox-backup-archives + existingClaim: staging-ceph-archives + # existingClaim: staging-oceanbox-backup-archives nodeSelector: topology.kubernetes.io/group: srv kubernetes.io/hostname: fs2