These tests require SR-IOV config created on both master
and worker
nodes and located
under /var/lib/networkservicemesh/sriov.config
.
Required service domains and capabilities for the master
node are:
capabilities:
- 10G
serviceDomains:
- worker.domain
For the worker
node:
capabilities:
- 10G
serviceDomains:
- master.domain
- Create ns for deployments:
kubectl create ns nsm-system
Apply NSM resources for basic tests:
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=58a90eb58a3e06f02cbd99c221b35327488025cc
To free resources follow the next commands:
WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
kubectl delete mutatingwebhookconfiguration ${WH}
kubectl delete ns nsm-system