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"
jetstream:
enabled: true
memStorage:
enabled: true
size: "1Gi"
fileStorage:
enabled: true
size: "2Gi"
storageDirectory: /data/
storageClassName: "local-path"
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
Replace local-path
with the appropriate storage class name for your Kubernetes cluster.
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.
© 2023 Northern.tech AS