searxng

by Rub'x Kube

Helm chartv0.1.0App 2026.7.28Verified publisher

A free internet metasearch engine which aggregates results from various search services

About this chart

searxng

SearXNG is a free internet metasearch engine which aggregates results from more than 70 different search services. Users are neither tracked nor profiled.

Homepage: https://searxng.org/

Maintainers

NameEmailUrl
QJOLY[email protected]https://une-tasse-de.cafe

Source Code

Requirements

Kubernetes: >= 1.18

RepositoryNameVersion
https://rubxkube.github.io/common-chartscommonv0.6.4
https://valkey.io/valkey-helmvalkey0.11.0

Values

KeyTypeDefaultDescription
common.configMap.enabledbooltrueShips settings.yml as a read-only ConfigMap at /etc/searxng.
common.deployment.emptyDir[0].containerMountstring"/var/cache/searxng"Backs the image's writable data path (cache) under readOnlyRootFilesystem.
common.deployment.emptyDir[1].containerMountstring"/tmp"Backs /tmp for granian/python temp writes under readOnlyRootFilesystem.
common.deployment.podSecurityContext.fsGroupint977SearXNG image runs as the searxng user (UID/GID 977).
common.deployment.securityContext.allowPrivilegeEscalationboolfalseHardening.
common.deployment.securityContext.capabilities.drop[0]string"ALL"Drop all Linux capabilities.
common.deployment.securityContext.readOnlyRootFilesystembooltrueRoot FS read-only; writable paths backed by emptyDir.
common.deployment.securityContext.runAsGroupint977GID of the searxng user.
common.deployment.securityContext.runAsNonRootbooltrueRun the container as a non-root user.
common.deployment.securityContext.runAsUserint977UID of the searxng user inside the image.
common.deployment.strategy.typestring"RollingUpdate"Stateless frontend; zero-downtime upgrades and HPA-compatible.
common.hpa.enabledboolfalseSafe to enable: pod is stateless, no RWO PVC.
common.image.pullPolicystring"Always"
common.image.repositorystring"searxng/searxng"Official SearXNG image.
common.image.tagstring"2026.7.28-c01178d03"Pinned upstream tag.
common.ingress.enabledboolfalseEnable ingress to expose SearXNG.
common.ingress.hostNamestring"searxng.example.com"Public hostname used for the ingress and SEARXNG_BASE_URL.
common.persistence.enabledboolfalseNo PVC: config is a ConfigMap; cache/tmp use emptyDir.
common.service.containerPortint8080SearXNG listens on 8080 by default.
common.service.servicePortint8080
common.variables.nonSecret.SEARXNG_BASE_URLstring"https://searxng.example.com/"Public base URL; must match your ingress scheme + hostName.
common.variables.nonSecret.SEARXNG_LIMITERstringnilSet "true" to enable bot protection (requires Valkey).
common.variables.nonSecret.SEARXNG_VALKEY_URLstringnilValkey URL, e.g. redis://searxng-valkey:6379/0 (requires valkey.enabled).
common.startupProbe.httpGet.pathstring"/healthz"SearXNG ships a /healthz endpoint.
common.startupProbe.failureThresholdint18~180s startup window.
common.livenessProbe.failureThresholdint3Tolerate transient blips before restart.
common.readinessProbe.httpGet.pathstring"/healthz"
common.livenessProbe.httpGet.pathstring"/healthz"
common.tests.curlHostHeader.enabledbooltrueHits /healthz with the ingress Host header.
common.tests.classicHttp.enabledboolfalse
valkey.enabledboolfalseDeploy the official Valkey subchart to back the rate limiter (off by default).

Configuration notes

Secret key

The server.secret_key is not sourced from the settings.yml file on the PVC. SearXNG reads the SEARXNG_SECRET environment variable at runtime and overrides whatever secret_key is in settings.yml, so the chart injects it from a Kubernetes Secret (<release>-searxng-secret). Leaving common.variables.secret.data.SEARXNG_SECRET empty auto-generates a 48-char random secret on first install that stays stable across upgrades (the chart reuses the existing Secret via a lookup). Set an explicit string to use your own value, or rotate it by editing the value and restarting the pod.

To use an externally-managed Secret (Sealed Secrets / External Secrets / Vault), drop data: and use common.variables.secret.existingSecret.

Base URL and ingress

Set common.variables.nonSecret.SEARXNG_BASE_URL to the public URL of your instance. It must match common.ingress.hostName and the scheme must match common.ingress.tls.enabled (the default https:// matches the default tls.enabled: true); a mismatch causes mixed-content links and redirect loops. To run behind an ingress, set common.ingress.enabled: true and configure hostName and TLS.

Settings file

SearXNG's settings.yml is shipped declaratively as a read-only ConfigMap mounted at /etc/searxng/settings.yml (common.configMap). The pod is therefore stateless: no config PVC, RollingUpdate strategy, and horizontal scaling / HPA work without RWO multi-attach conflicts. The default settings.yml uses use_default_settings: true and only sets secret_key (overridden by SEARXNG_SECRET) and image_proxy; extend it in common.configMap.data for settings that have no env override (engines, autocomplete, formats, ...). The image's writable paths (/var/cache/searxng, /tmp) are backed by emptyDir so readOnlyRootFilesystem can stay on.

Note: the SearXNG entrypoint prints non-fatal ownership WARNINGs for both /etc/searxng and /var/cache/searxng (it expects searxng:searxng, gets root:searxng). This is expected and cosmetic. Kubernetes creates ConfigMap projected volumes and emptyDir volumes owned by root; the pod's fsGroup: 977 makes the kubelet set the group to 977 and the mode group-writable, but it cannot change the owner from root. Since the pod runs non-root (runAsUser: 977, readOnlyRootFilesystem: true), nothing can chown them to 977:977. Access still works: the ConfigMap files are world-readable (0644) and the cache emptyDir is group-writable, so UID 977 reads its config and writes its cache fine. The entrypoint just doesn't account for fsGroup-based group access. /healthz returns 200 and the cache is writable in practice.

Bot protection / rate limiting (optional)

SearXNG's limiter (server.limiter) needs a Valkey instance. This chart bundles the official Valkey chart (valkey-io/valkey-helm), deployed only when you opt in (valkey.enabled: false by default).

To enable it, set these together (the Valkey service is named <release>-valkey, e.g. searxng-valkey:6379 for helm install searxng ...):

valkey:
  enabled: true

common:
  variables:
    nonSecret:
      SEARXNG_LIMITER: "true"
      SEARXNG_VALKEY_URL: "redis://searxng-valkey:6379/0"
  deployment:
    initContainers:
      - name: wait-for-valkey          # copy the full block from values.yaml
        # ...image, securityContext, command, args from values.yaml...
        env:
          - name: SEARXNG_VALKEY_URL
            value: "redis://searxng-valkey:6379/0"   # mirror the value above

Override heads-up: Helm replaces lists on merge. If you pass initContainers via -f/--set, redeclare the whole wait-for-valkey container (copy it from values.yaml), not just the env: snippet. Editing values.yaml directly? Just set the two value: lines.

Notes:

  • SEARXNG_VALKEY_URL must match the release name (<release>-valkey:6379); keep it in sync in both nonSecret and the initContainer env.
  • All three go together. A wrong URL or a forgotten valkey.enabled: true doesn't crash: SearXNG logs an error and the limiter stays silently inactive.
  • Startup race. SearXNG initializes the limiter once at boot and doesn't retry Valkey, so on a fresh install it can come up before Valkey and stay inactive until a pod restart. The wait-for-valkey initContainer blocks pod start until Valkey is up (≤60s, then best-effort), fixing this. It no-ops when SEARXNG_VALKEY_URL is empty, so users who skip the limiter are unaffected. It needs the URL too (Kubernetes doesn't share env between containers), hence the mirror above.
  • Valkey is only for the limiter. SearXNG is stateless otherwise, so you can run multiple replicas / HPA without Valkey. With the limiter on, Valkey keeps the rate-limit state consistent across pods.
  • To persist the limiter cache across restarts, set valkey.dataStorage.enabled: true and a requestedSize.
  • To use an external/existing Valkey, leave valkey.enabled: false and point SEARXNG_VALKEY_URL at it.

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.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