Skip to content

Commit

Permalink
add clean stale volumes section
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <[email protected]>
  • Loading branch information
balamurugana committed Jul 12, 2023
1 parent 8b0d0b2 commit ac72a90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/volume-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,11 @@ Volume can be deleted only if it is in `Ready` state (that is, no pod is using i
# Delete `sleep-pvc` volume
kubectl delete pvc sleep-pvc
```

## Clean stale volumes
When Pods and/or Persistent Volume Claims are deleted forcefully, associated DirectPV volumes might be left undeleted and they becomes stale. These stale volumes are removed by running `clean` command. Below is an example:
```sh
$ kubectl directpv clean --all
```

Refer [clean command](./command-reference.md#clean-command) for more information.

0 comments on commit ac72a90

Please sign in to comment.