nsq
by BeeInventor
Helm chartv1.3.0App 1.3.0
A realtime distributed messaging platform
About this chart
NSQ
NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day.
TL;DR
helm repo add beeinventor https://beeinventor.github.io/charts
helm install my-release beeinventor/nsq
Values
The following table lists the configurable parameters of the nsq chart and their default values.
common
| Value | Description | Default |
|---|---|---|
| fullnameOverride | String to partially override nsq.fullname | Chart name |
| image.repository | NSQ image repository | nsqio/nsq |
| image.tag | NSQ image tag | v{.Chart.AppVersion} |
| image.pullPolicy | Image pull policy | IfNotPresent |
| imagePullSecrets | Specify docker-registry secret names as an array | [] |
nsqlookupd
| Value | Description | Default |
|---|---|---|
| nsqlookupd.enabled | Enable the nsqlookupd | true |
| nsqlookupd.fullnameOverride | String to partially override nsq.nsqlookupd.fullname | .Release.Name-nsqlookupd |
| nsqlookupd.replicaCount | Number of nsqlookupd replicas | 3 |
| nsqlookupd.priorityClassName | The name of the kube priority class used. Defaults to global default. | nil |
| nsqlookupd.extraArgs | Extra arguments to provide to the nsqlookupd command | [] |
| nsqlookupd.podManagementPolicy | The pod management policy of the StatefulSet | Parallel |
| nsqlookupd.podAnnotations | The annotations to attach to the nsqlookupd pods | {} |
| nsqlookupd.podSecurityContext | The security context to attach to the nsqlookupd pods | {} |
| nsqlookupd.resources | The resources to allocate to the nsqlookupd pods | {} |
| nsqlookupd.serviceAccountName | The name of the service account used. Defaults to namespace default service account. | nil |
| nsqlookupd.nodeSelector | The tags that will be used to select the node on which the pods should be scheduled | {} |
| nsqlookupd.tolerations | Tolerations for pod assignment | [] |
| nsqlookupd.affinity | Affinity for pod assignment | [] |
nsqadmin
| Value | Description | Default |
|---|---|---|
| nsqadmin.enabled | Enable the nsqadmin | true |
| nsqadmin.fullnameOverride | String to partially override nsq.nsqadmin.fullname | .Release.Name-nsqadmin |
| nsqadmin.replicaCount | Number of nsqadmin replicas | 1 |
| nsqadmin.priorityClassName | The name of the kube priority class used. Defaults to global default. | nil |
| nsqadmin.extraArgs | Extra arguments to provide to the nsqadmin command | [] |
| nsqadmin.service.type | The nsqadmin service type | ClusterIP |
| nsqadmin.service.port | The nsqadmin service port | 4171 |
| nsqadmin.service.nodePort | The nsqadmin service node port | nil |
| nsqadmin.ingress.enabled | Enable the nsqadmin ingress | false |
| nsqadmin.ingress.host | Host of the nsqadmin ingress | nil |
| nsqadmin.ingress.annotations | The annotations to attach to the ingress | {} |
| nsqadmin.ingress.tls | TLS configurations for the hostname | [] |
| nsqadmin.podAnnotations | The annotations to attach to the nsqadmin pods | {} |
| nsqadmin.podSecurityContext | The security context to attach to the nsqadmin pods | {} |
| nsqadmin.resources | The resources to allocate to the nsqadmin pods | {} |
| nsqadmin.serviceAccountName | The name of the service account used. Defaults to namespace default service account. | nil |
| nsqadmin.nodeSelector | The tags that will be used to select the node on which the pods should be scheduled | {} |
| nsqadmin.tolerations | Tolerations for pod assignment | [] |
| nsqadmin.affinity | Affinity for pod assignment | [] |
nsqd
| Value | Description | |
|---|---|---|
| nsqd.enabled | Enable the nsqd | true |
| nsqd.fullnameOverride | String to partially override nsq.nsqd.fullname | .Release.Name-nsqd |
| nsqd.replicaCount | Number of nsqd replicas | 3 |
| nsqd.priorityClassName | The name of the kube priority class used. Defaults to global default. | nil |
| nsqd.extraArgs | Extra arguments to provide to the nsqd command | [] |
| nsqd.extraEnv | Extra env to provide to the nsqd | [] |
| nsqd.service.type | The nsqd service type | ClusterIP |
| nsqd.podAnnotations | The annotations to attach to the nsqd pods | {} |
| nsqd.podSecurityContext | The security context to attach to the nsqd pods | {} |
| nsqd.resources | The resources to allocate to the nsqd pods | {} |
| nsqd.serviceAccountName | The name of the service account used. Defaults to namespace default service account. | nil |
| nsqd.nodeSelector | The tags that will be used to select the node on which the pods should be scheduled | {} |
| nsqd.tolerations | Tolerations for pod assignment | [] |
| nsqd.affinity | Affinity for pod assignment | [] |
Metrics parameters
| Name | Description | Default |
|---|---|---|
| metrics.enabled | Enable using a sidecar Prometheus exporter | false |
| metrics.image.registry | Nsq(®) Prometheus exporter image registry | docker.io |
| metrics.image.repository | Nsq(®) Prometheus exporter image repository | lovoo/nsq_exporter |
| metrics.image.tag | Nsq(®) Prometheus exporter image tag (immutable tags are recommended) | 2.0.2 |
| metrics.image.pullPolicy | Nsq(®) Prometheus exporter image pull policy | IfNotPresent |
| metrics.image.pullSecrets | Specify docker-registry secret names as an array | [] |
| metrics.args | Override default container args (useful when using custom images) | [] |
| metrics.resources.limits | The resources limits for Prometheus exporter containers | {} |
| metrics.resources.requests | The requested resources for Prometheus exporter containers | {} |
| metrics.containerPort | Port of the Prometheus metrics container | 9216 |
| metrics.service.annotations | Annotations for Prometheus Exporter pods. Evaluated as a template. | {} |
| metrics.service.type | Type of the Prometheus metrics service | ClusterIP |
| metrics.service.ports.metrics | Port of the Prometheus metrics service | 9216 |
| metrics.service.extraPorts | Extra ports to expose (normally used with the sidecar value) | [] |
| metrics.livenessProbe.enabled | Enable livenessProbe | true |
| metrics.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 15 |
| metrics.livenessProbe.periodSeconds | Period seconds for livenessProbe | 5 |
| metrics.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
| metrics.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 3 |
| metrics.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
| metrics.readinessProbe.enabled | Enable readinessProbe | true |
| metrics.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
| metrics.readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
| metrics.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
| metrics.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
| metrics.readinessProbe.succes |
Deploy nsq with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nsq 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 chartnsq is pinned at v1.3.0 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