nats
NATS is an open source, lightweight and high-performance messaging system. It is ideal for distributed systems and supports modern cloud architectures and pub-sub, request-reply and queuing models.
About this chart
NATS packaged by Bitnami
NATS is an open source, lightweight and high-performance messaging system. It is ideal for distributed systems and supports modern cloud architectures and pub-sub, request-reply and queuing models.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/nats
Introduction
This chart bootstraps a NATS deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release my-repo/nats
The command deploys NATS on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
NATS parameters
| Name | Description | Value |
|---|---|---|
image.registry | NATS image registry | docker.io |
image.repository | NATS image repository | bitnami/nats |
image.tag | NATS image tag (immutable tags are recommended) | 2.9.4-debian-11-r0 |
image.digest | NATS image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | NATS image pull policy | IfNotPresent |
image.pullSecrets | NATS image pull secrets | [] |
image.debug | Enable NATS image debug mode | false |
auth.enabled | Switch to enable/disable client authentication | true |
auth.user | Client authentication user | nats_client |
auth.password | Client authentication password | "" |
auth.token | Client authentication token | "" |
auth.timeout | Client authentication timeout (seconds) | 1 |
auth.usersCredentials | Client authentication users credentials collection | [] |
auth.noAuthUser | Client authentication username from auth.usersCredentials map to be used when no credentials provided | "" |
cluster.connectRetries | Configure number of connect retries for implicit routes, otherwise leave blank | "" |
cluster.auth.enabled | Switch to enable/disable cluster authentication | true |
cluster.auth.user | Cluster authentication user | nats_cluster |
cluster.auth.password | Cluster authentication password | "" |
cluster.auth.token | Cluster authentication token | "" |
debug.enabled | Switch to enable/disable debug on logging | false |
debug.trace | Switch to enable/disable trace debug level on logging | false |
debug.logtime | Switch to enable/disable logtime on logging | false |
maxConnections | Max. number of client connections | "" |
maxControlLine | Max. protocol control line | "" |
maxPayload | Max. payload | "" |
writeDeadline | Duration the server can block on a socket write to a client | "" |
natsFilename | Filename used by several NATS files (binary, configuration file, and pid file) | nats-server |
configuration | Specify content for NATS configuration file (generated based on other parameters otherwise) | "" |
existingSecret | The name of an existing Secret with your custom configuration for NATS | "" |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Extra environment variables to be set on NATS container | [] |
extraEnvVarsCM | ConfigMap with extra environment variables | "" |
extraEnvVarsSecret | Secret with extra environment variables | "" |
NATS deployment/statefulset parameters
| Name | Description | Value |
|---|---|---|
resourceType | NATS cluster resource type under Kubernetes. Allowed values: statefulset (default) or deployment | statefulset |
replicaCount | Number of NATS nodes | 1 |
schedulerName | Use an alternate scheduler, e.g. "stork". | "" |
priorityClassName | Name of pod priority class | "" |
updateStrategy.type | StrategyType. Can be set to RollingUpdate or OnDelete | RollingUpdate |
containerPorts.client | NATS client container port | 4222 |
containerPorts.cluster | NATS cluster container port | 6222 |
containerPorts.monitoring | NATS monitoring container port | 8222 |
podSecurityContext.enabled | Enabled NATS pods' Security Context | false |
podSecurityContext.fsGroup | Set NATS pod's Security Context fsGroup | 1001 |
containerSecurityContext.enabled | Enabled NATS containers' Security Context | false |
containerSecurityContext.runAsUser | Set NATS containers' Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set NATS containers' Security Context runAsNonRoot | true |
resources.limits | The resources limits for the NATS containers | {} |
resources.requests | The requested resources for the NATS containers | {} |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 30 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
readinessProbe.periodSeconds | Period s |
Deploy nats with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nats on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnats is pinned at v7.4.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply