How to patch OpenEBS Storage Pool Claim(SPC) to change max/minPools. For some reason it looks like kubectl patch doesn’t support it.
How to patch/edit OpenEBS cStor SPC to change max/minPools?
61 views Asked by Ranjith Raveendran At
1
How to patch OpenEBS Storage Pool Claim(SPC) to change max/minPools. For some reason it looks like kubectl patch doesn’t support it.
Before doing this activity, get the current pool replica count. If it is 2, you have to provide the required number of pool replica count in the patch.yaml. In this case, if you need to change to 3, you will need to do a JSON merge patch. Following are the steps for patching StoragePoolClaim.
Step1: You need to create a YAML file named patch.yaml and add following content.
Step 2: Run the following command to do patch
Example:
Following is an example output.