Memory example contains setup and tear down logic with default NSM infrastructure and memory based registry backend.
Apply NSM resources for basic tests:
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/memory?ref=7a2735f6f8c8ed02d058c1a6a2f04846a3d88cad
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
To free resources follow the next commands:
kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook
kubectl delete ns nsm-system