modified: README.md

This commit is contained in:
Márcio Fernandes
2026-06-21 19:19:01 +00:00
parent 9dfa5546c5
commit de7d9431f3
+20 -1
View File
@@ -54,6 +54,7 @@ Kubernetes is an opensource platform that automates the deployment, scaling,
- [k3s](#k3s)
- [Install / Setup](#install--setup)
- [prune old images](#prune-old-images)
- [Prune ephemeral containerd data](#prune-ephemeral-containerd-data)
- [check system logs](#check-system-logs)
- [Workarounds \& Fixes](#workarounds--fixes)
- [Failed unmounting var-lib-rancher.mount on reboot](#failed-unmounting-var-lib-ranchermount-on-reboot)
@@ -745,12 +746,30 @@ curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.33.3+k3s1 INSTALL_K3S_EXEC
### prune old images
prune old images, execute on kubernetes host node
prune orphan images, execute on kubernetes host node
```bash
crictl rmi --prune
```
### Prune ephemeral containerd data
Useful when testing imagecache behavior or forcing a full image repull on the next reconciliation.
This removes all containerd state, including images, snapshots, and metadata.
``` bash
# Stop k3s service
systemctl stop k3s
# Remove all containerd data (images, snapshots, metadata)
rm -rf /var/lib/rancher/k3s/agent/containerd
# Start k3s service
systemctl start k3s
```
After this, k3s will start with a completely clean containerd state, and all images will be pulled again as workloads reconcile.
### check system logs
```bash