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

ValueDescriptionDefault
fullnameOverrideString to partially override nsq.fullnameChart name
image.repositoryNSQ image repositorynsqio/nsq
image.tagNSQ image tagv{.Chart.AppVersion}
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsSpecify docker-registry secret names as an array[]

nsqlookupd

ValueDescriptionDefault
nsqlookupd.enabledEnable the nsqlookupdtrue
nsqlookupd.fullnameOverrideString to partially override nsq.nsqlookupd.fullname.Release.Name-nsqlookupd
nsqlookupd.replicaCountNumber of nsqlookupd replicas3
nsqlookupd.priorityClassNameThe name of the kube priority class used. Defaults to global default.nil
nsqlookupd.extraArgsExtra arguments to provide to the nsqlookupd command[]
nsqlookupd.podManagementPolicyThe pod management policy of the StatefulSetParallel
nsqlookupd.podAnnotationsThe annotations to attach to the nsqlookupd pods{}
nsqlookupd.podSecurityContextThe security context to attach to the nsqlookupd pods{}
nsqlookupd.resourcesThe resources to allocate to the nsqlookupd pods{}
nsqlookupd.serviceAccountNameThe name of the service account used. Defaults to namespace default service account.nil
nsqlookupd.nodeSelectorThe tags that will be used to select the node on which the pods should be scheduled{}
nsqlookupd.tolerationsTolerations for pod assignment[]
nsqlookupd.affinityAffinity for pod assignment[]

nsqadmin

ValueDescriptionDefault
nsqadmin.enabledEnable the nsqadmintrue
nsqadmin.fullnameOverrideString to partially override nsq.nsqadmin.fullname.Release.Name-nsqadmin
nsqadmin.replicaCountNumber of nsqadmin replicas1
nsqadmin.priorityClassNameThe name of the kube priority class used. Defaults to global default.nil
nsqadmin.extraArgsExtra arguments to provide to the nsqadmin command[]
nsqadmin.service.typeThe nsqadmin service typeClusterIP
nsqadmin.service.portThe nsqadmin service port4171
nsqadmin.service.nodePortThe nsqadmin service node portnil
nsqadmin.ingress.enabledEnable the nsqadmin ingressfalse
nsqadmin.ingress.hostHost of the nsqadmin ingressnil
nsqadmin.ingress.annotationsThe annotations to attach to the ingress{}
nsqadmin.ingress.tlsTLS configurations for the hostname[]
nsqadmin.podAnnotationsThe annotations to attach to the nsqadmin pods{}
nsqadmin.podSecurityContextThe security context to attach to the nsqadmin pods{}
nsqadmin.resourcesThe resources to allocate to the nsqadmin pods{}
nsqadmin.serviceAccountNameThe name of the service account used. Defaults to namespace default service account.nil
nsqadmin.nodeSelectorThe tags that will be used to select the node on which the pods should be scheduled{}
nsqadmin.tolerationsTolerations for pod assignment[]
nsqadmin.affinityAffinity for pod assignment[]

nsqd

ValueDescription
nsqd.enabledEnable the nsqdtrue
nsqd.fullnameOverrideString to partially override nsq.nsqd.fullname.Release.Name-nsqd
nsqd.replicaCountNumber of nsqd replicas3
nsqd.priorityClassNameThe name of the kube priority class used. Defaults to global default.nil
nsqd.extraArgsExtra arguments to provide to the nsqd command[]
nsqd.extraEnvExtra env to provide to the nsqd[]
nsqd.service.typeThe nsqd service typeClusterIP
nsqd.podAnnotationsThe annotations to attach to the nsqd pods{}
nsqd.podSecurityContextThe security context to attach to the nsqd pods{}
nsqd.resourcesThe resources to allocate to the nsqd pods{}
nsqd.serviceAccountNameThe name of the service account used. Defaults to namespace default service account.nil
nsqd.nodeSelectorThe tags that will be used to select the node on which the pods should be scheduled{}
nsqd.tolerationsTolerations for pod assignment[]
nsqd.affinityAffinity for pod assignment[]

Metrics parameters

NameDescriptionDefault
metrics.enabledEnable using a sidecar Prometheus exporterfalse
metrics.image.registryNsq(®) Prometheus exporter image registrydocker.io
metrics.image.repositoryNsq(®) Prometheus exporter image repositorylovoo/nsq_exporter
metrics.image.tagNsq(®) Prometheus exporter image tag (immutable tags are recommended)2.0.2
metrics.image.pullPolicyNsq(®) Prometheus exporter image pull policyIfNotPresent
metrics.image.pullSecretsSpecify docker-registry secret names as an array[]
metrics.argsOverride default container args (useful when using custom images)[]
metrics.resources.limitsThe resources limits for Prometheus exporter containers{}
metrics.resources.requestsThe requested resources for Prometheus exporter containers{}
metrics.containerPortPort of the Prometheus metrics container9216
metrics.service.annotationsAnnotations for Prometheus Exporter pods. Evaluated as a template.{}
metrics.service.typeType of the Prometheus metrics serviceClusterIP
metrics.service.ports.metricsPort of the Prometheus metrics service9216
metrics.service.extraPortsExtra ports to expose (normally used with the sidecar value)[]
metrics.livenessProbe.enabledEnable livenessProbetrue
metrics.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe15
metrics.livenessProbe.periodSecondsPeriod seconds for livenessProbe5
metrics.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
metrics.livenessProbe.failureThresholdFailure threshold for livenessProbe3
metrics.livenessProbe.successThresholdSuccess threshold for livenessProbe1
metrics.readinessProbe.enabledEnable readinessProbetrue
metrics.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
metrics.readinessProbe.periodSecondsPeriod seconds for readinessProbe5
metrics.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
metrics.readinessProbe.failureThresholdFailure threshold for readinessProbe3
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnsq is pinned at v1.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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