5. Anuket ViNePerf Kubernetes Container Networking Benchmarking¶
ViNePerf supports testing and benchmarking of kubernetes container networking solution, referred as kubernetes Container Networking Benchmarking (CNB). The process can be broadly classified into following four operations.
Setting up of Kubernetes Cluster.
Deploying container networking solution.
First step is achieved through the tool present in tools/k8s/cluster-deployment folder. Please refer to the documentation present in that folder for automated kubernetes cluster setup.
User can choose to perform all the remaining steps (2, 3, and 4), by running the following command.
vsperf --k8s --conf-file k8s.conf pcp_tput
User can also chose to perform only steps 3 and 4, by choosing to run following test cases.
vsperf --k8s --conf-file k8s.conf pcp_evs_tput or vsperf --k8s --conf-file k8s.conf pccp_evs_tput
5.1. Important Configurations¶
VSPERF has introduced a new configuration parameters, as listed below, for kubernetes CNB. The file 12_k8s.conf, present in conf folder provides sample values. User has to modify these parameters to suit their environment before running the above command.
K8S_CONFIG_FILEPATH - location of the kubernetes-cluster access file. This will be used to connect to the cluster.
PLUGIN - The plugin to use. Allowed values are OvsDPDK, VPP, and SRIOV.
NETWORK_ATTACHMENT_FILEPATH - location of the network attachment definition file.
CONFIGMAP_FILEPATH - location of the config-map file. This will be used only for SRIOV plugin.
POD_MANIFEST_FILEPATH - location of the POD definition file.
APP_NAME - Application to run in the pod. Options - l2fwd, testpmd, and l3fwd.
Kubernetes CNB will be done through new testcases. For Jerma release, only pcp_tput will be supported. This testcase, will be similar to pvp_tput, where VNF is replaced with a pod/container. The pcp_tput testcase, will still use phy2phy as deployment. In Kali release, two testscases were added:
pcp_evs_tput: Single-Pod throughput test, where virtual switch is externally deployed and managed.
pccp_evs_tput: Two-Pod throughput test, where virtual switch is externally deployed and managed.
In future releases, more testcases for kubernetes will be added.