From d69c2069b5c23d9b920f12d89182d2e12c1817c2 Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Mon, 27 May 2024 14:28:35 +0200 Subject: [PATCH] feat: migrate staging sorcerer to cephfs! --- .../staging/archives-ceph-volume.yaml | 37 +++++++++++++++++++ charts/sorcerer/staging/kustomization.yaml | 5 ++- charts/sorcerer/values-staging.yaml | 4 +- 3 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 charts/sorcerer/staging/archives-ceph-volume.yaml 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