Validate node setup
Node Prerequisite
To run node conformance test, a node must satisfy the same prerequisites as a standard Kubernetes node. At a minimum, the node should have the following daemons installed:
- Container Runtime (Docker)
- Kubelet
- Work out the value of the option for the kubelet; for example:
--kubeconfig=/var/lib/kubelet/config.yaml
. Because the test framework starts a local control plane to test the kubelet, usehttp://localhost:8080
as the URL of the API server. There are some other kubelet command line parameters you may want to use:
- : If you are using
--cloud-provider=gce
, you should remove the flag to run the test.
- Run the node conformance test with command:
Running Node Conformance Test for Other Architectures
Kubernetes also provides node conformance test docker images for other architectures:
To skip specific tests, overwrite the environment variable with the regular expression of tests you want to skip.
Theoretically, you can run any node e2e test if you configure the container and mount required volumes properly. But it is strongly recommended to only run conformance test, because it requires much more complex configuration to run non-conformance test.
Caveats
- The test leaves some docker images on the node, including the node conformance test image and images of containers used in the functionality test.
- The test leaves dead containers on the node. These containers are created during the functionality test.