Specify image cleanup threshold on rancher rke2 cluster
The default image gc thresholds are:
- low: 80%
- high: 85%
imageGCLowThresholdPercent is the percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. The percent is calculated by dividing this field value by 100, so the field value must be between 0 and 100, inclusive. When specified, the value must be less than imageGCHighThresholdPercent. Default: 80
imageGCHighThresholdPercent is the percent of disk usage after which image garbage collection is always run. The percent is calculated by dividing this field value by 100, so this field must be between 0 and 100, inclusive. When specified, the value must be greater than imageGCLowThresholdPercent. Default: 85
We should specify lower limits to avoid the trigger the monitoring alert when the disk is occupied at > 80%
17:26 <+swhbot> icinga PROBLEM: service disk /var/lib/rancher on rancher-node-staging-rke2-worker2.internal.staging.swh.network is CRITICAL: DISK CRITICAL - free space: /var/lib/rancher 2740 MB (8% inode=72%)