This repo is used to reproduce kubernetes/kubernetes#95727.
Credits to @abursavich for shared a scrip for downloading the k8s mods.
In our case we're debugging v1.19.3
run the script to download everything needed:
bash -x hack/download.sh 1.19.3
To test it on a Linux VM, do the following to cross compile:
GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" .
- start the binary
- start monitoring CPU usage (e.g. using
top
) - restart
containerd
(e.g.systemctl restart containerd
)