modified: README.md
This commit is contained in:
13
README.md
13
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:**
|
||||
|
||||
Reference in New Issue
Block a user