Skip to content

Commit 090b51c

Browse files
committed
feat: update sandboxd for cgroup v2
Advance the sandboxd submodule to the merged upstream revision that detects the local cgroup mode and supports both v1 and v2 transparently. Update the platform and deployment documentation to remove the former cgroup v1 restriction. Set the ACK Terraform default to Kubernetes 1.35.2 now that sandboxd can run on the unified cgroup v2 hierarchy used by that release. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
1 parent 29982af commit 090b51c

7 files changed

Lines changed: 5 additions & 17 deletions

File tree

AGENTS.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ make deploy
151151
make print-env
152152
```
153153

154-
AKernel `v0.1.0` node runtime currently requires Linux x86-64 nodes with
155-
cgroup v1. Do not deploy it to cgroup v2 nodes or assume bootstrap will detect
156-
an incompatible host before sandboxd starts.
157-
158154
Kata is present in the default AKernel runtime configuration but is an
159155
optional node capability. It additionally requires `/dev/kvm` to be usable
160156
from the node container. A node without KVM remains ready and advertises only

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ See the complete [basic usage example](./sdk/python/examples/basic_usage.py), th
168168
- [ ] Fork-based sandbox launch based on gVisor
169169
- [ ] Sandbox checkpoint and restore
170170
- [ ] Support for GKE and AWS
171-
- [ ] Cgroup v2 node support
171+
- [x] Cgroup v2 node support
172172

173173
## License
174174

deploy/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ make print-env
2525
make e2e
2626
```
2727

28-
The current node runtime requires Linux x86-64 with cgroup v1. It does not yet
29-
support cgroup v2, and bootstrap does not reliably detect an incompatible host
30-
before sandboxd starts. Verify the node operating system and cgroup mode before
31-
deployment.
32-
3328
Kata Containers is enabled in the default AKernel runtime configuration and adds one host requirement: `/dev/kvm` must be available to the node container. Nodes without a usable KVM device remain ready and advertise only runsc. If no node advertises Kata, `Sandbox(runtime="kata")` fails scheduling with a no-resource error.
3429

3530
`make config` is interactive by default. It writes:

deploy/terraform/aliyun/terraform.tfvars.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ auto_authorize_oos_lifecycle_role = true
3333
# kubeconfig_output_path = "/abs/path/to/generated/kubeconfig"
3434

3535
# Kubernetes and network ranges.
36-
# NOTE: ACK 1.35+ drops cgroup v1 support. Use 1.34 or earlier if sandboxd needs cgroup v1.
37-
k8s_version = "1.34.3-aliyun.1"
36+
k8s_version = "1.35.2-aliyun.1"
3837
network_addon = "terway-eniip"
3938
service_cidr = "10.20.0.0/20"
4039
# Optional: override pod vSwitches for terway-eni/terway-eniip (defaults to worker vSwitches).

deploy/terraform/aliyun/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ variable "zone_ids" {
124124

125125
variable "k8s_version" {
126126
type = string
127-
description = "ACK Kubernetes version. NOTE: 1.35+ requires cgroup v2 (no cgroup v1 support). Use 1.34 or earlier if sandboxd needs cgroup v1."
128-
default = "1.34.3-aliyun.1"
127+
description = "ACK Kubernetes version."
128+
default = "1.35.2-aliyun.1"
129129
}
130130

131131
variable "network_addon" {

deploy/terraform/huaweicloud/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ contract as the Aliyun module: one all-in-one AKernel image, a generated IAM
66
seed, dual-entrypoint Traefik, optional public Grafana, and local state under
77
`.akernel/<env>/`.
88

9-
AKernel 0.1.0 has been tested on Linux x86-64 nodes using cgroup v1.
10-
119
## Prerequisites
1210

1311
- Terraform 1.5 or later

src/sandboxd

Submodule sandboxd updated 60 files

0 commit comments

Comments
 (0)