Deploying NATS with Helm
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
helm install my-nats nats/natsConfiguration
Server Image
nats:
image: nats:2.7.4-alpine
pullPolicy: IfNotPresentLimits
nats:
# The number of connect attempts against discovered routes.
connectRetries: 30
# How many seconds should pass before sending a PING
# to a client that has no activity.
pingInterval:
# Server settings.
limits:
maxConnections:
maxSubscriptions:
maxControlLine:
maxPayload:
writeDeadline:
maxPending:
maxPings:
lameDuckDuration:
# Number of seconds to wait for client connections to end after the pod termination is requested
terminationGracePeriodSeconds: 60Logging
TLS setup for client connections
Clustering
Leafnodes
Websocket Configuration
Setting up External Access
Using HostPorts
Using LoadBalancers
Gateways
Auth setup
Auth with a Memory Resolver
Auth using an Account Server Resolver
JetStream
Setting up Memory and File Storage
Using with an existing PersistentVolumeClaim
Clustering example
Misc
NATS Box
Configuration Reload sidecar
Prometheus Exporter sidecar
Prometheus operator ServiceMonitor support
Pod Customizations
Security Context
Affinity
Service topology
CPU/Memory Resource Requests/Limits
Annotations
Name Overrides
Image Pull Secrets
Last updated
Was this helpful?