How to Optimize and Manage Node Storage #512
Replies: 2 comments 4 replies
-
I can't confirm with an actual cluster right now since I am on the move, but I have this in my wiki: you can configure the garbage collection in Containerd by editing containerd:
snapshotter:
prune_on_startup: true Then restarting k3s: systemctl restart k3s However I am not sure if this now happens automatically with newer versions of k3s. |
Beta Was this translation helpful? Give feedback.
-
Other things I have in my wiki that might help: # List all container images
sudo k3s crictl images
# Remove unused images
sudo k3s crictl rmi --prune
# Run garbage collection for containerd
sudo k3s crictl rmp --prune Also, configure the GC for images in k3s: edit the K3s configuration file (usually located at /etc/rancher/k3s/config.yaml or /etc/k3s/config.yaml) and add or configure the following: kubelet-arg:
- "image-gc-high-threshold=85"
- "image-gc-low-threshold=70"
After making changes, restart the K3s service: sudo systemctl restart k3s |
Beta Was this translation helpful? Give feedback.
-
Recently, I noticed a storage warning for my nodes, which is unusual. Upon investigating further, I discovered a significant increase in the node disk size.
Any recommendation or configuration to control this size, I am not sure about the cause
Beta Was this translation helpful? Give feedback.
All reactions