Node e2e tests start kubelet and minimal supporting infrastructure to validate the kubelet on a host. Tests can be run either locally, against a remote host or against a GCE image.
Note: Linux only. Mac and Windows unsupported.
etcd must be installed and on the PATH to run the node e2e tests. To verify etcd is installed: which etcd
.
You can find instructions for installing etcd on the etcd releases page.
Run the tests locally: make test_e2e_node
Running the node e2e tests locally will build the kubernetes go source files and then start the kubelet, kube-apiserver, and etcd binaries on localhost before executing the ginkgo tests under test/e2e_node against the local kubelet instance.
The node e2e tests can be run against one or more remote hosts using one of
The host must contain a environment capable of supporting a mini-kubernetes cluster. Includes:
See setup_host.sh
GCE_HOSTS
INSTALL_GODEP=true
to install godep
, gomega
, ginkgo
ssh <host>
.
gcloud compute config-ssh
to add gce hostnames to your .ssh/config so they are resolvable by ssh.test/e2e_node/jenkins/e2e-node-jenkins.sh <path to properties file>
ssh <hostname> -- sudo echo "ok"
-i
), they can be used and passed to the tests with --ssh-options
godep go run test/e2e_node/runner/run_e2e.go --logtostderr --hosts <comma separated hosts>
github.com/tools/godep
, github.com/onsi/gomega
, github.com/onsi/ginkgo/ginkgo
e2e_node_test.tar.gz
to a remote hostgodep go run test/e2e_node/runner/run_e2e.go --logtostderr --build-only
github.com/tools/godep
, github.com/onsi/gomega
, github.com/onsi/ginkgo/ginkgo
e2e_node_test.tar.gz
to the remote hosttar -xzvf e2e_node_test.tar.gz
./e2e_node.test --logtostderr --vmodule=*=2 --build-services=false --node-name=<hostname>
gcloud compute --project <project> --zone <zone> images list
GCE_PROJECT
, GCE_ZONE
, GCE_IMAGES
test/e2e_node/jenkins/e2e-node-jenkins.sh <path to properties file>
Node e2e tests are run against a static list of host environments continuously or when manually triggered on a github.com
pull requests using the trigger phrase @k8s-bot test node e2e experimental
- results not yet publish, pending
evaluation of test stability..
TBD
linux distro | distro version | docker version | etcd version | cloud provider |
---|---|---|---|---|
containervm | 1.8 | gce | ||
rhel | 7 | 1.10 | gce | |
centos | 7 | 1.10 | gce | |
coreos | stable | 1.8 | gce | |
debian | jessie | 1.10 | gce | |
ubuntu | trusty | 1.8 | gce | |
ubuntu | trusty | 1.9 | gce | |
ubuntu | trusty | 1.10 | gce | |
ubuntu | wily | 1.10 | gce |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。