Skip to content

Latest commit

 

History

History
 
 

memory

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Memory examples

Memory example contains setup and tear down logic with default NSM infrastructure and memroy based registry backend.

Requires

Includes

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/memory?ref=8b7093ac5b240e72edceac5224be3d7605bc8957
  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