mirror of
https://github.com/hanzoai/k8s.git
synced 2026-10-02 15:40:05 +00:00
disk: give the image prune five minutes, not crictl's two seconds
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 3m1s
Hanzo CI/CD / cicd (push) Successful in 3m2s
CI/CD / cicd (push) Successful in 6m7s
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 3m1s
Hanzo CI/CD / cicd (push) Successful in 3m2s
CI/CD / cicd (push) Successful in 6m7s
Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
+4
-1
@@ -13,7 +13,10 @@ import (
|
||||
|
||||
// evict drops what the node keeps only to save a download or a rebuild.
|
||||
func evict(ctx context.Context, log *slog.Logger) {
|
||||
step(ctx, log, "images", "/usr/local/bin/crictl", "rmi", "--prune")
|
||||
// crictl gives each request two seconds by default, and removing an image's
|
||||
// layers takes longer than that: the prune reported DeadlineExceeded while
|
||||
// containerd went on deleting.
|
||||
step(ctx, log, "images", "/usr/local/bin/crictl", "--timeout=5m", "rmi", "--prune")
|
||||
step(ctx, log, "journal", "/usr/bin/journalctl", "--vacuum-size=256M")
|
||||
log.Info("evict tmp", "bytes", sweep(host+"/tmp", day, plainFiles))
|
||||
for _, c := range caches(host) {
|
||||
|
||||
Reference in New Issue
Block a user