Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.75 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.75 KB

OVS examples

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.

Requires

Includes

SR-IOV config

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

Run

  1. Create ns for deployments:
kubectl create ns nsm-system
  1. Apply NSM resources for basic tests:
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/ovs?ref=58a90eb58a3e06f02cbd99c221b35327488025cc
  1. 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

Cleanup

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