Run

Prerequisites

Make sure you have the following dependencies to run NSM:

  • docker
  • go
  • A Kubernetes Cluster - good options include:
    • kind - usually the easiest choice. Run:

      1
      2
      3
      4
      5
      6
      7
      
      echo "
      kind: Cluster
      apiVersion: kind.x-k8s.io/v1alpha4
      nodes:
      - role: control-plane
      - role: worker
      - role: worker" | kind create cluster --config -
      

      The cluster creation command is passed the configuration to run 2 worker nodes, and most examples require at least 2 worker nodes to run. Please keep this in mind if you use another tool for running a Kubernates cluster.

    • minikube

    • microk8s

    • k3s

  • kubectl
  • Cloud k8s integrations to run NSM system tests (not necessary to run the examples below):

Install Spire

If you do not already have Spire on your system install Spire

Follow the instructions in the README.md

Install NSM

If you do not already have NSM infrastructure on your system install NSM

Follow the instructions in the README.md