Files
k8s/disk/run_other.go
zeekayandHanzo Dev 7d6a4cbb78 disk: a node agent that keeps every node's disks from filling
At 75% it drops caches (unused images, the journal, stale /tmp and build caches); at 80% it labels the node hanzo.ai/disk=pressure so disk-heavy pods stay off; at 85% it purges rotated logs and the forge's push quarantines, then grows the EBS volume by half (6 h cooldown, 4 TiB ceiling) and the filesystem with it; at 90% it cordons the node. Its own module, standard library only, shipped as ghcr.io/hanzoai/disk.

Co-authored-by: Hanzo Dev <[email protected]>
2026-10-02 08:20:46 -07:00

14 lines
264 B
Go

//go:build !linux
package main
import (
"context"
"errors"
)
// run needs Linux namespaces; the program serves only Linux nodes.
func run(ctx context.Context, argv ...string) (string, error) {
return "", errors.New("disk runs node programs only on linux")
}