searxng

by lbenicio

Helm chartv0.1.3App 2026.6.22-952896d29Verified publisher

Privacy-respecting metasearch engine with managed or existing PVCs, including NFS-backed storage

About this chart

searxng

Privacy-respecting metasearch engine — StatefulSet with a single persistent volume and node scheduling support for node-local storage.

TL;DR

helm repo add lbenicio-community https://helm.lbenicio.dev/
helm install my-release lbenicio-community/searxng --version 0.1.3

Introduction

This chart deploys SearXNG, a free internet metasearch engine that aggregates results from other search services without tracking users.

Unlike the community chart (a Deployment with two separate PVCs), this chart runs SearXNG as a StatefulSet with a single data volume. Both /etc/searxng (config) and /var/cache/searxng (cache) live on the same volume as subdirectories, which keeps all persistent state together and gives the pod a stable identity.

Because the default StorageClass is node-local (local-path), the chart supports nodeSelector, tolerations and affinity so the pod can be pinned to the node that owns the storage.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.x+
  • A local-path (or any ReadWriteOnce) StorageClass

Installing the Chart

helm install searxng lbenicio-community/searxng \
  --namespace default \
  --set ingress.enabled=true \
  --set ingress.hosts[0].host=search.example.com

Pin to the storage node

With node-local storage the volume lives on one node. Pin the pod there:

nodeSelector:
  kubernetes.io/hostname: k8s-node-3

# or prefer, but don't require, the storage node
affinity:
  nodeAffinity:
    preferredDuringSchedulingIgnoredDuringExecution:
      - weight: 100
        preference:
          matchExpressions:
            - key: kubernetes.io/hostname
              operator: In
              values:
                - k8s-node-3

Parameters

Core

KeyTypeDefaultDescription
image.repositorystringsearxng/searxngContainer image
image.tagstring""Image tag (defaults to Chart.appVersion)
replicaCountint1Number of replicas (one PVC each)

SearXNG config

KeyTypeDefaultDescription
config.settingsobjectdefaultssettings.yml content rendered into a ConfigMap
secret.existingSecretstring""Existing Secret with SEARXNG_SECRET
secret.valuestring""Explicit secret value (random otherwise)
envobject{}Environment variables (e.g. SEARXNG_PORT)

Persistence

KeyTypeDefaultDescription
persistence.enabledbooltrueEnable persistent storage
persistence.existingClaimstring""Use an existing PVC
persistence.claimNamestring""Name a chart-managed PVC instead of a volumeClaimTemplate
persistence.storageClassstringlocal-pathStorageClass
persistence.sizestring3GiPVC size (holds config + cache)
persistence.retainOnDeletebooltrueKeep PVCs when deleting the StatefulSet

To have the chart create and mount a named NFS PVC, set persistence.claimName and persistence.storageClass: ntfs-storage, leaving existingClaim empty. This is useful when adopting an already-bound claim. Without claimName, the StatefulSet creates one volumeClaimTemplate per replica. Set existingClaim when a separate controller owns the PVC. | initResources | object | small | Resources for the init container (runs as root to chown the volume) |

Network

KeyTypeDefaultDescription
service.typestringClusterIPService type
service.portint8080HTTP port
ingress.enabledboolfalseEnable Ingress
ingress.classNamestring""Ingress class name

Scheduling

KeyTypeDefaultDescription
nodeSelectorobject{}Pin the pod to a node
tolerationslist[]Tolerations
affinityobject{}Affinity rules

Monitoring

KeyTypeDefaultDescription
keel.enabledbooltrueKeel auto-update annotations
serviceMonitor.enabledboolfalsePrometheus Operator ServiceMonitor

How config works

config.settings is rendered into a ConfigMap. An init container copies settings.yml into the config subdirectory of the data volume and fixes ownership to the searxng user (uid/gid 977). Changing the ConfigMap content updates the pod annotation checksum and rolls the StatefulSet, and the new settings.yml is copied over the volume's copy on the next start.

License

This chart is licensed under GPL-3.0. SearXNG is licensed under AGPL-3.0.

Deploy searxng with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has searxng 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 chartsearxng is pinned at v0.1.3 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