On startup, vk-cocoon probes the host for real CPU, memory, hugepages,
and disk capacity and registers them as the virtual node’s Capacity and
Allocatable in the Kubernetes API. This replaces hardcoded defaults
with values the scheduler can trust.
runtime.NumCPU, /proc/meminfo
MemTotal, statfs total, and hugepages-<size> where the page size is
read from /proc/meminfo so a 1Gi-default node is advertised under the
right key).VK_RESERVE_PERCENT).statfs available bytes (Bavail)
instead of total — base images, existing COW overlays, and snapshots
are naturally excluded from the budget.VK_NODE_CPU,
VK_NODE_MEM, VK_NODE_STORAGE, VK_NODE_HUGEPAGES, VK_NODE_PODS
(see Configuration).