Skip to content

Commit dd97c0d

Browse files
committed
switch to use cgroup v2 for ubuntu images
1 parent b93a6c8 commit dd97c0d

File tree

9 files changed

+34
-7
lines changed

9 files changed

+34
-7
lines changed

jobs/e2e_node/containerd/containerd-main/image-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ images:
22
ubuntu:
33
image_family: pipeline-1-29
44
project: ubuntu-os-gke-cloud
5+
# the image regex is added so that only cgroupv2 images are selected.
6+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
7+
image_regex: ".*[^-cgroupsv1]$"
58
metadata: "user-data</home/prow/go/src/github.com/containerd/containerd/test/e2e_node/init.yaml,containerd-configure-sh</home/prow/go/src/github.com/containerd/containerd/cluster/gce/configure.sh,containerd-env</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/containerd-main/env"
69
cos:
710
image_family: cos-125-lts # keep as close to the COS version that has containerd version closest to the main branch as possible

jobs/e2e_node/containerd/containerd-release-1.7/image-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
images:
22
ubuntu:
3-
image: ubuntu-gke-2204-1-24-v20220623
3+
image_family: pipeline-1-29
44
project: ubuntu-os-gke-cloud
5+
# the image regex is added so that only cgroupv2 images are selected.
6+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
7+
image_regex: ".*[^-cgroupsv1]$"
58
metadata: "user-data</home/prow/go/src/github.com/containerd/containerd/test/e2e_node/init.yaml,containerd-configure-sh</home/prow/go/src/github.com/containerd/containerd/cluster/gce/configure.sh,containerd-env</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/containerd-release-1.7/env"
69
cos:
710
image_family: cos-117-lts # Use cos-117-lts to lock down what COS version is used with containerd 1.7, which aligns with COS's built-in containerd version

jobs/e2e_node/containerd/containerd-release-2.0/image-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
images:
22
ubuntu:
3-
image: ubuntu-gke-2204-1-24-v20220623
3+
image_family: pipeline-1-29
44
project: ubuntu-os-gke-cloud
5+
# the image regex is added so that only cgroupv2 images are selected.
6+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
7+
image_regex: ".*[^-cgroupsv1]$"
58
metadata: "user-data</home/prow/go/src/github.com/containerd/containerd/test/e2e_node/init.yaml,containerd-configure-sh</home/prow/go/src/github.com/containerd/containerd/cluster/gce/configure.sh,containerd-env</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/containerd-release-2.0/env"
69
cos:
710
image_family: cos-121-lts # Use cos-121-lts to lock down what COS version is used with containerd 2.0, which aligns with COS's built-in containerd version

jobs/e2e_node/containerd/containerd-release-2.1/image-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
images:
22
ubuntu:
3-
image: ubuntu-gke-2204-1-24-v20220623
3+
image_family: pipeline-1-29
44
project: ubuntu-os-gke-cloud
5+
# the image regex is added so that only cgroupv2 images are selected.
6+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
7+
image_regex: ".*[^-cgroupsv1]$"
58
metadata: "user-data</home/prow/go/src/github.com/containerd/containerd/test/e2e_node/init.yaml,containerd-configure-sh</home/prow/go/src/github.com/containerd/containerd/cluster/gce/configure.sh,containerd-env</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/containerd-release-2.1/env"
69
cos:
710
image_family: cos-125-lts # Use cos-125-lts to lock down what COS version is used with containerd 2.1, which aligns with COS's built-in containerd version

jobs/e2e_node/containerd/image-config-serial-hugepages.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ images:
55
ubuntu:
66
image_family: pipeline-1-29
77
project: ubuntu-os-gke-cloud
8+
# the image regex is added so that only cgroupv2 images are selected.
9+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
10+
image_regex: ".*[^-cgroupsv1]$"
811
metadata: "user-data</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/ubuntu-init-hugepages-1G-allocation.yaml,cni-template</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/config.toml,registry-config-docker</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/hosts-docker.toml"
912
# Using `e2-standard-2` to have enough memory for 1Gb huge pages allocation
1013
machine: e2-standard-2

jobs/e2e_node/containerd/image-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ images:
22
ubuntu:
33
image_family: pipeline-1-29
44
project: ubuntu-os-gke-cloud
5+
# the image regex is added so that only cgroupv2 images are selected.
6+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
7+
image_regex: ".*[^-cgroupsv1]$"
58
metadata: "user-data</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/config.toml,registry-config-docker</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/hosts-docker.toml"
69
cos:
710
image_family: cos-125-lts

jobs/e2e_node/image-config-serial-cpu-manager.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
44
images:
55
ubuntu:
6-
image: ubuntu-gke-2204-1-24-v20220623
6+
image_family: pipeline-1-29
77
project: ubuntu-os-gke-cloud
8+
# the image regex is added so that only cgroupv2 images are selected.
9+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
10+
image_regex: ".*[^-cgroupsv1]$"
811
# Using `e2-standard-4` to enable CPU manager node e2e tests.
912
machine: e2-standard-4
1013
cos:

jobs/e2e_node/image-config-serial-hugepages.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
44
images:
55
ubuntu:
6-
image: ubuntu-gke-2204-1-24-v20220623
6+
image_family: pipeline-1-29
77
project: ubuntu-os-gke-cloud
8+
# the image regex is added so that only cgroupv2 images are selected.
9+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
10+
image_regex: ".*[^-cgroupsv1]$"
811
metadata: "user-data</home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/ubuntu-hugepages-1G-allocation.yaml"
912
# Using `e2-standard-2` to have enough memory for 1Gb huge pages allocation
1013
machine: e2-standard-2

jobs/e2e_node/image-config-serial.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
44
images:
55
ubuntu:
6-
image: ubuntu-gke-2204-1-24-v20220623
7-
machine: e2-standard-2 # These tests need a lot of memory
6+
image_family: pipeline-1-29
87
project: ubuntu-os-gke-cloud
8+
# the image regex is added so that only cgroupv2 images are selected.
9+
# currently all images with cgroupv1 from gke have a -cgroupsv1 suffix
10+
image_regex: ".*[^-cgroupsv1]$"
11+
machine: e2-standard-2 # These tests need a lot of memory
912
cos:
1013
image_family: cos-125-lts # keep in sync with jobs/e2e_node/containerd/image-config.yaml
1114
project: cos-cloud

0 commit comments

Comments
 (0)