Skip to content

Instantly share code, notes, and snippets.

@dims
Created April 28, 2025 13:12
Show Gist options
  • Save dims/29b734404b94715373759f25c18e555e to your computer and use it in GitHub Desktop.
Save dims/29b734404b94715373759f25c18e555e to your computer and use it in GitHub Desktop.
# Create a fresh new Ubuntu 24.04 VM and run the commands below:
# Install a bunch of stuff we need
apt update && apt -y install gperf sudo htop psutils build-essential pkg-config git wget unzip
# Clone what we need
git clone https://github.com/kubernetes/kubernetes $HOME/go/src/k8s.io/kubernetes
git clone https://github.com/containerd/containerd $HOME/go/src/github.com/containerd/containerd
# Latest golang
curl -sSL https://golang.org/dl/go1.24.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
export PATH=/usr/local/go/bin:$PATH
export PATH=$(go env GOPATH)/bin:$PATH
go version
# build / install and start containerd
cd $HOME/go/src/github.com/containerd/containerd
# run the scripts for install/setup
script/setup/install-seccomp && \
script/setup/install-runc && \
script/setup/install-cni && \
script/setup/install-protobuf \
&& mkdir -p /go/src/usr/local/bin /go/src/usr/local/include \
&& mv /usr/local/bin/protoc /go/src/usr/local/bin/protoc \
&& mv /usr/local/include/google /go/src/usr/local/include/google
make binaries GO_BUILD_FLAGS="-mod=vendor"
make install
# create and start the containerd service
cp $HOME/go/src/github.com/containerd/containerd/containerd.service /etc/systemd/system/containerd.service
systemctl daemon-reload
systemctl enable containerd.service
systemctl start containerd
# sanity check
ctr version
# build k8s and run node e2e tests
export PATH=$PATH:/go/src/k8s.io/kubernetes/_output/local/go/bin/
cd $HOME/go/src/k8s.io/kubernetes
USER=root make test-e2e-node
@dims
Copy link
Author

dims commented Apr 28, 2025

4 failures with this script as of now.

Summarizing 4 Failures:
  [FAIL] [sig-node] Summary API [NodeConformance] when querying /stats/summary [It] should report resource usage through the stats api [sig-node, NodeConformance]
  k8s.io/kubernetes/test/e2e_node/summary_test.go:363
  [FAIL] [sig-node] ImageCredentialProvider [Feature:KubeletCredentialProviders] [It] should be able to create pod with image credentials fetched from external credential provider  [sig-node, Feature:KubeletCredentialProviders]
  k8s.io/kubernetes/test/e2e/common/node/image_credential_provider.go:87
  [FAIL] [sig-node] Kubelet PodOverhead handling [LinuxOnly] PodOverhead cgroup accounting On running pod with PodOverhead defined [It] Pod cgroup should be sum of overhead and resource limits [sig-node]
  k8s.io/kubernetes/test/e2e_node/runtimeclass_test.go:121
  [FAIL] [sig-node] User Namespaces for Pod Security Standards [LinuxOnly] with UserNamespacesSupport and UserNamespacesPodSecurityStandards enabled [It] should allow pod [Feature:UserNamespacesPodSecurityStandards] [sig-node, Feature:UserNamespacesPodSecurityStandards]
  k8s.io/kubernetes/test/e2e/framework/pod/output/output.go:176

Ran 502 of 761 Specs in 1767.655 seconds
FAIL! -- 498 Passed | 4 Failed | 0 Pending | 259 Skipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment