vk-cocoon

Node resources

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.

Node labels

vk-cocoon stamps the virtual node with:

Label Source Meaning
cocoonstack.io/pool VK_NODE_POOL (default default) The cocoon node pool CocoonSets select with spec.nodePool
cocoonstack.io/snapshot-cpu-class VK_SNAPSHOT_CPU_CLASS (unset = absent) The guest-visible CPU ABI this node can resume memory snapshots for; see Snapshot CPU compatibility
node-role.kubernetes.io/cocoon-vm always Marks the node as VM-backed

The labels are re-asserted on every process start, on the node template at registration and again on the live node object afterwards — virtual-kubelet only patches the status subresource once the node exists, so a re-stamped or cleared class would otherwise never reach an existing node. Editing the env and restarting is therefore the supported way to reclassify a node.