Sets the size capacity of a volume.
This command temporarily interrupts the associated service for up to several minutes.
clusterctl volume capacity <pv> --size <size> [-y]
See below for a description of each parameter.
When prompted, confirm the size modification – for example:
$ sudo clusterctl volume capacity storage-entitlements-service –-size 2
Warning: The command execution will temporarily interrupt the service associated to the Persistent Volume. This might take several minutes
Are you sure you want to modify the Persistent Volume capacity? [Y/n]: Y
Resizing the storage-entitlements-service Persistent Volume to 2Gi... Done
<pv>
Set the capacity of the <pv>
persistent volume, where <pv>
is one of the volume names listed by the clusterctl volume info command.
Mandatory: Yes.
--size <size>
Set the persistent volume size to <size>
, where <size>
is a number of Gi (float values supported).
- If this value does not exceed the current volume size, the command will throw an error message. Run the clusterctl volume info command to check the current volume sizes.
- When changing the size capacity of the Prometheus volume, run the clusterctl retention config metrics command to update the metrics retention accordingly.
Mandatory: Yes.
-y, --yes
Skip the confirmation prompt.