NATS and Kubernetes
To register the NATS Helm chart run:
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
The default configuration values of the chart will deploy a single NATS server as a
StatefulSet
and a single replica nats-box Deployment
.The ArtifactHub page provides the list of Helm configuration values and examples for the current release.
Once the desired configuration is created, install the chart:
helm install nats nats/nats
Once the pods are up, validate by accessing the
nats-box
container and running a CLI command.kubectl exec -it deployment/nats-box -- nats pub test hi
The output should indicate a successful publish to NATS.
16:17:00 Published 2 bytes to "test"
Last modified 1mo ago