From 32b9453e148ba1916cc85033ded09bdebfee77ed Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Thu, 7 Jan 2021 00:32:33 -0500 Subject: [PATCH] chore(docs): update policy.md with cvc patch example (#224) set a example to patch CVC resource Signed-off-by: Sebastien Dionne --- docs/tutorial/volumes/policy.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/tutorial/volumes/policy.md b/docs/tutorial/volumes/policy.md index 236d8633..18a71b63 100644 --- a/docs/tutorial/volumes/policy.md +++ b/docs/tutorial/volumes/policy.md @@ -259,6 +259,34 @@ spec: Note: These resource configuration can be changed once the volume get provisioned by editing the CStorVolumeConfig resource on per volume level. +E.g. You can apply a patch to update CStorVolumeConfig resource that already exists. Create a file that contains the changes like `patch-resources-cvc.yaml` + +```yaml +spec: + policy: + target: + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 250m + memory: 64Mi + auxResources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 250m + memory: 64Mi +``` + +and apply the patch on the resource + +```bash +kubectl patch cvc -n openebs -p "$(cat patch-resources-cvc.yaml)" pvc-0478b13d-b1ef-4cff-813e-8d2d13bcb316 --type merge +``` + ### Target Pod Toleration: This Kubernetes feature allows users to mark a node (taint the node) so that no pods can be scheduled to it, unless a pod explicitly tolerates the taint.