lumenvox-external-services
LumenVox External Services Helm chart for Kubernetes
About this chart
LumenVox External Services Helm Chart
This chart runs the external services needed by the LumenVox stack inside your Kubernetes cluster:
- MongoDB
- PostgreSQL
- RabbitMQ
- Redis
The services are installed and upgraded together with the stack using standard helm commands. The chart installs into the same namespace as the LumenVox stack and references four pre-created secrets the LumenVox chart reads.
Quick start
Create the secrets
The chart does not create secrets — you must create them in the release namespace before installing:
kubectl create secret generic mongodb-existing-secret -n lumenvox \
--from-literal=mongodb-root-password=<password>
kubectl create secret generic postgres-existing-secret -n lumenvox \
--from-literal=postgresql-password=<password>
kubectl create secret generic rabbitmq-existing-secret -n lumenvox \
--from-literal=rabbitmq-password=<password>
kubectl create secret generic redis-existing-secret -n lumenvox \
--from-literal=redis-password=<password>
Passwords must be alphanumeric only (no special characters), per the LumenVox install docs.
The install fails with the exact kubectl create secret command if any secret is missing or incomplete.
Install
helm install external-services . -n lumenvox --create-namespace \
--set redis.clusterMode.operator.storage.className=managed-csi
managed-csi is the AKS storage class. For other platforms see the Storage class table in the Redis Cluster mode section.
kubectl get pods -n lumenvox
9 pods should reach Running within a couple of minutes — six Redis pods (external-services-redis-cluster-leader-{0-2} and external-services-redis-cluster-follower-{0-2}, reconciled by the operator) plus external-services-mongodb, -postgresql, and -rabbitmq. The operator forms the cluster automatically; no separate init pod is needed. In single-instance mode (--set redis.clusterMode.enabled=false) there are no cluster pods and external-services-redis-master runs instead. PVCs may show Pending until pods are scheduled, which is normal.
Options
Storage
The chart uses your cluster's default storage class by default for MongoDB, PostgreSQL, RabbitMQ, and Redis single-instance mode. This works out of the box on EKS, AKS, and GKE. To use a specific class for those services:
--set storage.className=<name>
Each service also accepts its own storageClassName, which takes precedence over storage.className. The four have genuinely different needs — MongoDB wants capacity, PostgreSQL and RabbitMQ want IOPS — so they do not have to share a class:
--set postgresql.storageClassName=gp3-db --set mongodb.storageClassName=gp2
Redis cluster mode has a separate, required storage class setting (redis.clusterMode.operator.storage.className) with no default. It must be set explicitly — see Storage class in the Redis Cluster mode section.
On bare-metal clusters with no storage class, enable the bundled Rancher local-path provisioner:
--set localPathProvisioner.enabled=true --set storage.className=local-path
Private registry
MongoDB, PostgreSQL, and RabbitMQ images are pulled from Docker Hub. Redis cluster mode pulls from quay.io/opstree/redis — not Docker Hub.
Redis cluster mode (default) — mirror five images and point the chart at them:
helm install external-services . -n lumenvox --create-namespace \
--set mongodb.image.repository=registry.example.com/mongo \
--set postgresql.image.repository=registry.example.com/postgres \
--set rabbitmq.image.repository=registry.example.com/rabbitmq \
--set redis.clusterMode.operator.image.repository=registry.example.com/opstree-redis \
--set redis.clusterMode.operator.storage.className=managed-csi
The operator image (quay.io/opstree/redis-operator) runs as an init container (init-config) on every Redis cluster pod. It must also be mirrored and pointed at via the operator chart's own values when installing the operator.
Redis single-instance mode — use redis.image.repository instead of redis.clusterMode.operator.image.repository.
Service mesh
If linkerd runs in the cluster, pass --set linkerd.enabled=true. Database ports are then marked opaque so the mesh carries them under mTLS without protocol detection. Exception: Redis Cluster ports skip the proxy entirely due to a known linkerd limitation with cluster bootstrap — cluster nodes connect to each other before passing readiness, and the inbound proxy rejects that traffic (linkerd issue #13247).
Redis: cluster or single instance
Redis Cluster (6-node, 3 masters + 3 replicas) is the default. For small test environments, switch to a single instance:
--set redis.clusterMode.enabled=false
See Redis Cluster mode below for the client service name, the LumenVox chart values to set, and storage requirements.
Tuning for load
The chart's default resources are POC minimums. Sizing them for sustained load
is a matter of setting resources, but four settings need more than a number,
because the failure they prevent is not "too slow" — it is a hard stop:
| Setting | Default | What it prevents |
|---|---|---|
redis.maxmemoryPercent | 60 | Redis has no maxmemory boundary of its own, so it allocates past the container limit and is OOM-killed instead of evicting. On a cluster leader that is a shard failover, which every client sees as MOVED/CLUSTERDOWN. The margin is 40% because maxmemory bounds only the data set — client output buffers, replication backlog and fragmentation sit outside it and grow with connection count. |
rabbitmq.memoryHighWatermarkPercent | 60 | Left to inference the watermark is 0.4 of whatever RabbitMQ believes total memory to be — the cgroup limit on some nodes (a watermark that can sit under real usage, blocking all publishers via flow control) or host memory on others (a watermark above the container limit, so the pod is OOM-killed before flow control engages). |
rabbitmq.schedulers | auto | The Erlang VM sizes its scheduler pool from online host CPUs and ignores the cgroup CPU quota, so a pod limited to 1 core on a 16-core node still starts 16 schedulers to share that slice. Derived from resources.limits.cpu unless set explicitly. |
mongodb.wiredTigerCacheSizeGB | unset | WiredTiger sizes its cache at 50% of (memory limit − 1GB) when left to infer, which reserves more than requests promised the scheduler — overcommit that surfaces as node memory pressure rather than a mongod error. |
Both percentages are resolved against the service's own resources.limits.memory
and rendered as absolute byte counts, so they cannot drift when a pod is resized.
Set redis.maxmemoryPercent: 0 to omit maxmemory entirely.
Two more worth knowing about:
-
redis.ioThreads(default1) — Redis serves its whole command path on one thread, and that thread also performs the socket reads and writes. Raising this moves the socket work off it, which is what a managed cache does with its own I/O threads. Only useful when the pod has more than one core. -
redis.clusterMode.operator.persistenceEnabled(defaultfalse) — writes an append-only file on every shard. For a cache with a TTL that repopulates on restart, AOF write volume tracks the SET rate while the data being protected is only the resident set, so it is off by default: the disk stays out of the command path and only the nodeConf volume is provisioned per pod. Set ittrueto restore AOF.Upgrading an existing install: if the release currently has persistence enabled, taking this default flips it off, and the operator then recreates the StatefulSets without their data volumes — the cache starts cold and the old data PVCs are left behind for you to delete. Schedule it, or pin
persistenceEnabled: trueto keep the current behaviour.
Redis config changes need a pod restart. The settings above are delivered through the
external-services-redis-extra-configConfigMap, and redis reads it only at startup. The operator restarts a pod when its own spec changes, so a change that touches ONLY the ConfigMap —maxmemory,maxclients,io-threads,extraConfig— leaves running pods on the old values. If only one of the two StatefulSets rolls, the cluster runs mixed values. Either apply it at runtime (redis-cli CONFIG SET maxmemory <bytes>, which the file then matches on the next restart) or force a roll:kubectl rollout restart statefulset/<release>-redis-cluster-leader \ statefulset/<release>-redis-cluster-follower -n <namespace>Check what is actually live with
redis_memory_max_bytes, not the ConfigMap.
Size both redis roles the same. The operator names pods
leader-Nandfollower-N, but Redis Cluster roles are dynamic: anything that rolls the leader StatefulSet — including a resource change — fails each master over to its replica, and the operator does not fail back. The pods namedfollower-*can therefore be the actual masters indefinitely. Givingleaderandfollowerdifferent resources means that after any failover the masters are running on whichever allocation is smaller, silently. Determine real roles fromredis_instance_info{role=...}orredis_connected_slaves, never from the pod name. This also affects anything that writes:FLUSHALLagainst aleader-*pod returnsREADONLY You can't write against a read only replicawhen that pod is currently a replica.
redis.clusterMode.operator.maxClients (default 20000) sets maxclients on
cluster nodes. Note that the top-level redis.maxClients only ever reached the
single-instance deployment; cluster mode previously inherited the operator image
default. Redis silently lowers maxclients when the container's file-descriptor
limit is below maxclients + 32, and logs it once at startup.
postgresql.config is a map of server settings, passed as -c key=value flags.
The upstream image ships stock defaults regardless of container size
(shared_buffers=128MB, max_connections=100, and random_page_cost=4.0, which
assumes a spinning disk), whereas a managed instance auto-tunes them:
postgresql:
config:
max_connections: "200"
shared_buffers: "512MB"
random_page_cost: "1.1"
Availability and placement
Probes are enabled by default on all four services (<service>.probes.enabled).
Without a readiness probe a Service endpoint goes live the moment the container
starts, so every client pod's init container hammers a database that cannot
answer yet — which matters most for a broker recovering a large queue topology.
Each service also gets a PodDisruptionBudget, on by default. PostgreSQL, MongoDB
and RabbitMQ use maxUnavailable: 0: they are single replicas on ReadWriteOnce
volumes, so no voluntary eviction is survivable and a drain should be a decision
rather than a side effect of node consolidation. Redis Cluster uses
maxUnavailable: 1, which permits a rolling drain without taking two cluster
members at once. Disable per service with
<service>.podDisruptionBudget.enabled=false.
All four accept nodeSelector, tolerations, affinity,
topologySpreadConstraints, priorityClassName and podAnnotations, all empty
by default. These matter more in-cluster than they did with managed services:
nothing otherwise stops a database being scheduled onto a node already running
the workload it serves at that node's packing target. podAnnotations is also
where autoscaler hints go — without karpenter.sh/do-not-disrupt: "true",
routine consolidation will drain the node holding a single-replica database.
On AWS with Karpenter, examples/karpenter-nodepool.yaml
is a dedicated, tainted node pool for these services, with the matching
nodeSelector and tolerations in its header.
Connect the LumenVox chart
The LumenVox chart's built-in defaults for all four connection URLs are namespace-qualified with .lumenvox:
external-services-rabbitmq.lumenvox
external-services-redis-clustercfg.lumenvox
external-services-mongodb.lumenvox
external-services-postgresql.lumenvox
When this chart is installed with the release name external-services in the lumenvox namespace (as shown above), these defaults resolve correctly and no connection URL overrides are needed for any of the four services.
If this chart is installed in a different namespace, all four URLs need to be overridden to point to the correct namespace. For example, if installed in myns:
rabbitmq:
enableTLS: false
connection:
url: "external-services-rabbitmq.myns"
redis:
enableTLS: false
connection:
url: "external-services-redis-clustercfg.myns"
mongodb:
connection:
url: "external-services-mongodb.myns"
postgresql:
connection:
url: "external-services-postgresql.myns"
databaseName: "lumenvox_single_db"
databaseSchema: "public"
In single-instance mode (redis.clusterMode.enabled=false) use external-services-redis-master.<namespace> for the Redis URL.
The four secrets below must be pre-created by the customer before installing (see Create the secrets above). The names and keys match what the LumenVox chart expects, so no additional configuration is needed once they exist.
| Secret name | Required key |
|---|---|
mongodb-existing-secret | mongodb-root-password |
postgres-existing-secret | postgresql-password |
rabbitmq-existing-secret | rabbitmq-password |
redis-existing-secret | redis-password |
PostgreSQL database name: this chart creates
lumenvox_single_db, matching the LumenVox quick-start values. If your LumenVox values file sets a different `postgresql.
Deploy lumenvox-external-services with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lumenvox-external-services 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 chartlumenvox-external-services is pinned at v8.1.1 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