Skip to content

Instantly share code, notes, and snippets.

@egernst
Last active March 5, 2020 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egernst/3c19fe4e126d524f04ba11572f79533b to your computer and use it in GitHub Desktop.
Save egernst/3c19fe4e126d524f04ba11572f79533b to your computer and use it in GitHub Desktop.
e2e-node test and development

Starting from scratch, we need a system with Go/make/gcc for building the k8s binaries, as well as etcd and ginkgo for facilitating running the tests.

wget https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz
sudo tar -xvf go1.13.7.linux-amd64.tar.gz
sudo mv go /usr/local


# put into profile:
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin/:$GOPATH/bin

# get etcd
# get ginkgo

go get k8s.io/kubernetes
sudo apt update && sudo apt install -y gcc make curl

Once pre-reqs are on the system, we should be able to start the tests with a simple make test-e2e-node.

Unfortunately it appears there is an assumption that docker is available on the host:

 $ curl -fsSL https://get.docker.com -o get-docker.sh
 $ sh get-docker.s

Then run the tests:

make test-e2e-node FOCUS="PodOverhead"

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