modified: README.md

This commit is contained in:
2025-12-06 19:42:43 +00:00
parent d742133f57
commit 1be376ead7

View File

@@ -18,6 +18,7 @@ Kubernetes is an opensource 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:**