Contain basic setup for NSM that includes nsmgr
, forwarder-ovs
, registry-k8s
, admission-webhook-k8s
. This setup can be used to check mechanisms combination or some kind of NSM features.
These tests require SR-IOV config created on both master
and worker
nodes and located
under /var/lib/networkservicemesh/smartnic.config
.
Required service domains and capabilities for the master
node are:
capabilities:
- 100G
serviceDomains:
- worker.domain
For the worker
node:
capabilities:
- 100G
serviceDomains:
- master.domain
Apply NSM resources for basic tests:
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/ovs?ref=34e1f2476dbc21097ab0a50348a966fd58b79985
Wait for admission-webhook-k8s:
WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system
Basic examples
- Kernel to Kernel Connection
- Kernel to IP to Kernel Connection
- Kernel to Kernel Connection over VLAN Trunking
SmartVf examples
To free resources follow the next commands:
kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook
kubectl delete ns nsm-system