From 09d0d3c4f51f2ddbf6659fd134765e4736a6d97e Mon Sep 17 00:00:00 2001 From: YuryHrytsuk Date: Wed, 4 Jun 2025 12:46:07 +0200 Subject: [PATCH 1/2] aws ebs csi: document (retained) pv(c) removal Currently aws ebs csi storage class is configured to retain persistent volumes (pv) (safery measure). This documents how to remove PV(C)s and corresponding AWS EBS Volume (to avoid accumulating hangling resources and costs) --- charts/aws-ebs-csi-driver/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 charts/aws-ebs-csi-driver/README.md diff --git a/charts/aws-ebs-csi-driver/README.md b/charts/aws-ebs-csi-driver/README.md new file mode 100644 index 00000000..d0fc8669 --- /dev/null +++ b/charts/aws-ebs-csi-driver/README.md @@ -0,0 +1,28 @@ +## How to delete volumes with `recalimPolicy: retain` +1. Delete pvc: +``` +kubectl delete pvc +``` + +2. Verify PV is `released` +``` +kubectl get pv +``` + +3. Manually remove EBS in AWS + 1. Go to AWS GUI and List EBS Volumes + 1. Filter by tag `ebs.csi.aws.com/cluster=true` + 1. Identify the volume associated with your PV (check `kubernetes.io/created-for/pv/name` tag of the EBS Volume) + 1. Verify that EBS Volume is `Available` + 1. Delete EBS Volume + +4. Delete the PV +``` +kubectl delete pv +``` + +5. Remove Finalizers (if necessary) +If the PV remains in a Terminating state, remove its finalizers: +``` +kubectl patch pv -p '{"metadata":{"finalizers":null}}' +``` From 2037c8cdd1ffac266bd99795aaa0324b737df6bb Mon Sep 17 00:00:00 2001 From: YuryHrytsuk Date: Wed, 4 Jun 2025 12:47:53 +0200 Subject: [PATCH 2/2] Remove unnecessary document --- charts/victoria-logs/README.md | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 charts/victoria-logs/README.md diff --git a/charts/victoria-logs/README.md b/charts/victoria-logs/README.md deleted file mode 100644 index 0f774d8f..00000000 --- a/charts/victoria-logs/README.md +++ /dev/null @@ -1,2 +0,0 @@ -Highly Available Configuration with Helm: -* https://github.com/VictoriaMetrics/VictoriaMetrics/issues/9076