| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
VPC-native networking for Cocoon VM nodes. Provisions cloud networking resources and runs an embedded DHCP server so VMs obtain VPC-routable IPs directly -- no overlay network, no iptables DNAT, no external DHCP server dependency.
Documentation: cocoonstack.github.io/cocoon-net (source in docs/).
cocoon-net init cocoon-net daemon
| |
v v
Cloud provisioning Node setup (NICs up, bridge, sysctl, iptables, CNI conflist)
(alias IPs / ENIs) |
| v
v DHCP server on cni0
pool.json <---------- |
v
On lease: add /32 route
On release: del /32 route
Two-phase operation: cocoon-net init (or adopt) does one-time cloud provisioning and state persistence; cocoon-net daemon is the long-running service that sets up node networking, serves DHCP, and manages routes. Full details in Architecture.
| Platform | Mechanism | Max IPs/node |
|---|---|---|
| GKE | VPC alias IP ranges (gcloud) | ~254 |
| Volcengine | Dedicated subnet + secondary ENI IPs (ve CLI) | 140 (7 ENIs x 20) |
sudo install -m 0755 cocoon-net /usr/local/bin/
sudo cocoon-net init --platform gke --node-name cocoon-pool --subnet 172.20.100.0/24 --pool-size 140
sudo cocoon-net daemonFull steps in Installation.
make build # build binary
make test # run tests with coverage
make lint # golangci-lint (linux + darwin)
make fmt # gofumpt + goimports
make help # show all targets| Project | Role |
|---|---|
| cocoon | MicroVM engine (Cloud Hypervisor + Firecracker) |
| cocoon-common | Shared metadata, Kubernetes, and logging helpers |
| cocoon-operator | CocoonSet and Hibernation CRDs |
| cocoon-webhook | Admission webhook for sticky scheduling |
| vk-cocoon | Virtual kubelet provider |
| Back | FazBrowse Home | New Git URL |