NATS

tutorial

The Mender server uses NATS as message broker.

To install NATS on the Kubernetes cluster using the NATS Helm Chart, for example deploying a cluster with two NATS servers, run:

cat >nats.yml <<EOF
cluster:
  enabled: true
  replicas: 2
nats:
  image: "nats:2.3.1-alpine"
EOF

helm repo add nats https://nats-io.github.io/k8s/helm/charts/
helm repo update
helm install nats nats/nats --version 0.8.2 -f nats.yml

The connection string to connect to your NATS cluster will be:

nats://nats:4222

Please refer to the NATS official documentation for further information about setting up a production-grade NATS deployment.

Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to submit changes.