From 1be376ead72432f13a3e3cfd6de7f37488ab4c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 6 Dec 2025 19:42:43 +0000 Subject: [PATCH] modified: README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index ca4f245..1fa40f4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, - [taint nodes](#taint-nodes) - [control plane - NoSchedule](#control-plane---noschedule) - [Resources](#resources) + - [Persistent volumes claims](#persistent-volumes-claims) - [Services Accounts](#services-accounts) - [Secrets](#secrets) - [Manifest - Opaque / Base64](#manifest---opaque--base64) @@ -202,6 +203,18 @@ kubectl get all -n kube-system | grep traefik kubectl get serviceAccount --all-namespaces ``` +### Persistent volumes claims + +**Patch pvc to retain policy:** + +``` bash +PVC_NAME="????" +NAMESPACE="????" +PV_NAME= $(kubectl get pvc $PVC_NAME -n $NAMESPACE -o jsonpath='{.spec.volumeName}') +kubectl patch pv $PV_NAME \ + -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' +``` + ### Services Accounts **List all:**