-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix tests in sig-node related to CRIv1 update #28071
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This file is a copy of config.toml with SystemdCgroup enabled | ||
# | ||
# TODO:@akhilerm Once all the tests move to use cgroupv2, this file wont be needed. | ||
# This should merge with config.toml and it should be used everywhere | ||
version = 2 | ||
required_plugins = ["io.containerd.grpc.v1.cri"] | ||
# Kubernetes doesn't use containerd restart manager. | ||
disabled_plugins = ["io.containerd.internal.v1.restart"] | ||
oom_score = -999 | ||
|
||
[debug] | ||
level = "debug" | ||
|
||
[plugins."io.containerd.grpc.v1.cri"] | ||
stream_server_address = "127.0.0.1" | ||
max_container_log_line_size = 262144 | ||
[plugins."io.containerd.grpc.v1.cri".cni] | ||
bin_dir = "/home/containerd/" | ||
conf_dir = "/etc/cni/net.d" | ||
conf_template = "/home/containerd/cni.template" | ||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] | ||
endpoint = ["https://mirror.gcr.io","https://registry-1.docker.io"] | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd] | ||
default_runtime_name = "runc" | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | ||
runtime_type = "io.containerd.runc.v2" | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] | ||
SystemdCgroup = true | ||
|
||
# Runtime handler used for runtime class test. | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler] | ||
runtime_type = "io.containerd.runc.v2" | ||
|
||
# Enable registry.k8s.io as the primary mirror for k8s.gcr.io | ||
# See: https://github.com/kubernetes/k8s.io/issues/3411 | ||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"] | ||
endpoint = ["https://registry.k8s.io", "https://k8s.gcr.io",] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,14 @@ | |
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>` | ||
images: | ||
ubuntu: | ||
image_family: pipeline-1-24 | ||
project: ubuntu-os-gke-cloud | ||
image_family: ubuntu-2204-lts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Out of curiosity, why stop use the GKE images ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. I had a wrong assumption of $gcloud compute images describe-from-family pipeline-1-24 --project ubuntu-os-gke-cloud --format='value(name,selfLink)'
ubuntu-gke-2204-1-24-v20221128 https://www.googleapis.com/compute/v1/projects/ubuntu-os-gke-cloud/global/images/ubuntu-gke-2204-1-24-v20221128 the node(s) will have cgroupsv2 enabled. |
||
project: ubuntu-os-cloud | ||
# Using `n1-standard-4` to enable CPU manager node e2e tests. | ||
machine: n1-standard-4 | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config.toml" | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config-systemd.toml" | ||
cos-stable1: | ||
image_family: cos-89-lts # deprecated after March 2023 (https://cloud.google.com/container-optimized-os/docs/release-notes) | ||
image_family: cos-stable | ||
project: cos-cloud | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config.toml" | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config-systemd.toml" | ||
# Using `n1-standard-4` to enable CPU manager node e2e tests. | ||
machine: n1-standard-4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
images: | ||
ubuntu: | ||
image_family: pipeline-1-24 | ||
project: ubuntu-os-gke-cloud | ||
image_family: ubuntu-2204-lts | ||
project: ubuntu-os-cloud | ||
machine: n1-standard-2 # These tests need a lot of memory | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config.toml" | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config-systemd.toml" | ||
cos-stable2: | ||
image_family: cos-93-lts # deprecated after October 2023 (https://cloud.google.com/container-optimized-os/docs/release-notes) | ||
image_family: cos-stable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SergeyKanzhelev Why were we maintaining 2 separate cos versions for the tests in image-config-serial ? |
||
project: cos-cloud | ||
machine: n1-standard-2 # These tests need a lot of memory | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config.toml" | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config-systemd.toml" | ||
resources: | ||
accelerators: | ||
- type: nvidia-tesla-k80 | ||
count: 2 | ||
cos-stable1: | ||
image_family: cos-89-lts # deprecated after March 2023 (https://cloud.google.com/container-optimized-os/docs/release-notes) | ||
image_family: cos-stable | ||
project: cos-cloud | ||
machine: n1-standard-2 # These tests need a lot of memory | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config.toml" | ||
metadata: "user-data</workspace/test-infra/jobs/e2e_node/containerd/init.yaml,cni-template</workspace/test-infra/jobs/e2e_node/containerd/cni.template,containerd-config</workspace/test-infra/jobs/e2e_node/containerd/config-systemd.toml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now registry.k8s.io is GA (and introduced in the master branch of k/k) there is no specific value to do this.
we should remove this as a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will create a separate cleanup PR for that, so that the original config.toml can also be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ameukam Found this comment in the referring issue for the migration, So should we wait for some more time before switching?