Skip to content

Commit

Permalink
feat: enable pvc retain by default
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Jul 9, 2024
1 parent d2719c8 commit a76d115
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions kubernetes/core/rook-ceph.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ in
# ==========================

resources."storage.k8s.io/v1".StorageClass = rec {
rbd-nvme-retain = {
rbd-nvme = {
provisioner = "rook-ceph.rbd.csi.ceph.com";
parameters = commonStorageClassParamters // {
pool = "rbd-nvme";
Expand All @@ -142,13 +142,13 @@ in
imageFeatures = "layering,fast-diff,object-map,deep-flatten,exclusive-lock";
};
allowVolumeExpansion = true;
reclaimPolicy = "Retain";
reclaimPolicy = "Delete";
};

rbd-nvme = rbd-nvme-retain // {
rbd-nvme-retain = rbd-nvme // {
metadata.annotations."storageclass.kubernetes.io/is-default-class" = "true";
allowVolumeExpansion = true;
reclaimPolicy = "Delete";
reclaimPolicy = "Retain";
};

cephfs-nvme = {
Expand All @@ -164,6 +164,11 @@ in
reclaimPolicy = "Delete";
};

cephfs-nvme-retain = cephfs-nvme // {
allowVolumeExpansion = true;
reclaimPolicy = "Retain";
};

rgw-nvme = {
provisioner = "rook-ceph.ceph.rook.io/bucket";
reclaimPolicy = "Delete";
Expand Down

0 comments on commit a76d115

Please sign in to comment.