Before shrinking the Metrics volume, you need to determine the sufficient volume size based on the metrics in the Metrics → KUMA Metrics service → Storage → Disk space usage. Take into account the metrics storage duration and allocate extra disk space if you plan to use additional sources of metrics.
Before shrinking volumes, make sure that no metrics-transfer-<unique ID> task exists.
k0s kubectl get jobs -n kuma
The command should output "No resources found in kuma namespace.". The metrics-transfer task is automatically deleted 1 hour after completion.
If you want to delete it earlier, you can use the following command:
k0s kubectl delete job metrics-transfer -n kuma
You can shrink a volume in one of the following ways: