Kubernetes
Minimal STAN Setup
You can start with the following:
Next, try using nats-box
to connect to the nats
service to confirm that you have set NATS Streaming correctly.
HA Setup Using StatefulSets
In order to have higher availability you can setup NATS Streaming (STAN) to run in clustering mode. The following commands will setup a 3 node NATS cluster as well as a 3 node NATS Streaming cluster that has an attached volume for persistence. Note, you will need more than one node available in your Kubernetes cluster in order for this to work, so in case of deploying onto minikube or docker desktop, please try the single node installer instead.
Using Helm Charts
NATS Streaming has officially supported Helm charts as well:
最后更新于