modified: README.md
This commit is contained in:
@@ -54,6 +54,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling,
|
|||||||
- [k3s](#k3s)
|
- [k3s](#k3s)
|
||||||
- [Install / Setup](#install--setup)
|
- [Install / Setup](#install--setup)
|
||||||
- [prune old images](#prune-old-images)
|
- [prune old images](#prune-old-images)
|
||||||
|
- [Prune ephemeral containerd data](#prune-ephemeral-containerd-data)
|
||||||
- [check system logs](#check-system-logs)
|
- [check system logs](#check-system-logs)
|
||||||
- [Workarounds \& Fixes](#workarounds--fixes)
|
- [Workarounds \& Fixes](#workarounds--fixes)
|
||||||
- [Failed unmounting var-lib-rancher.mount on reboot](#failed-unmounting-var-lib-ranchermount-on-reboot)
|
- [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
|
||||||
|
|
||||||
prune old images, execute on kubernetes host node
|
prune orphan images, execute on kubernetes host node
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
crictl rmi --prune
|
crictl rmi --prune
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Prune ephemeral containerd data
|
||||||
|
|
||||||
|
Useful when testing image‑cache 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
|
### check system logs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user