Skip to content

Commit 6df102b

Browse files
authored
Document k8s pv removal (#1067)
* 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) * Remove unnecessary document
1 parent 55597cf commit 6df102b

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## How to delete volumes with `recalimPolicy: retain`
2+
1. Delete pvc:
3+
```
4+
kubectl delete pvc <pvc-name>
5+
```
6+
7+
2. Verify PV is `released`
8+
```
9+
kubectl get pv <pv-name>
10+
```
11+
12+
3. Manually remove EBS in AWS
13+
1. Go to AWS GUI and List EBS Volumes
14+
1. Filter by tag `ebs.csi.aws.com/cluster=true`
15+
1. Identify the volume associated with your PV (check `kubernetes.io/created-for/pv/name` tag of the EBS Volume)
16+
1. Verify that EBS Volume is `Available`
17+
1. Delete EBS Volume
18+
19+
4. Delete the PV
20+
```
21+
kubectl delete pv <pv-name>
22+
```
23+
24+
5. Remove Finalizers (if necessary)
25+
If the PV remains in a Terminating state, remove its finalizers:
26+
```
27+
kubectl patch pv <pv-name> -p '{"metadata":{"finalizers":null}}'
28+
```

charts/victoria-logs/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)