searxng

by m11s

Helm chartv0.4.2App 2026.10.27-cb74e7f81Verified publisher

Deploy SearXNG, a privacy-respecting metasearch engine

About this chart

SearXNG Helm Chart

SearXNG is a privacy-respecting metasearch engine. It aggregates results from other search engines while storing no user data and serving no ads.

Installation

helm repo add m11s https://m11s-io.github.io/helm-charts
helm repo update
helm install searxng m11s/searxng -n searxng --create-namespace -f values.yaml

SearXNG requires a secret key. Create it before installing:

kubectl create secret generic searxng-secret -n searxng \
  --from-literal=secret-key="$(openssl rand -hex 32)"

Minimal working values:

searxng:
  baseURL: https://search.example.com
  existingSecret:
    name: searxng-secret

Configuration

ParameterDescriptionDefault
hostUsersSet spec.hostUsers for user namespaces; requires cluster and runtime supportnull
searxng.baseURLPublic URL of this instance (required)""
searxng.instanceNameInstance name shown in the web UISearXNG
searxng.imageProxyProxy image results instead of hotlinking themtrue
searxng.publicInstanceEnable hardening for publicly reachable instancesfalse
searxng.methodHTTP method for search submission: GET or POSTGET
searxng.debugEnable debug mode (never on a public instance)false
searxng.formatsResponse formats served: html, csv, json, rss[html]
searxng.existingSecret.nameSecret containing the instance secret key (required)""
searxng.existingSecret.secretKeyKeyKey in the secret holding SEARXNG_SECRETsecret-key
searxng.settingsFree-form settings.yml fragment merged over chart defaults{}
limiter.enabledEnable the bot-detection rate limiter (requires Valkey)false
limiter.trustedProxiesCIDRs whose X-Forwarded-For is trusted[127.0.0.0/8, ::1]
limiter.ipv4PrefixLeading bits compared when grouping IPv4 clients32
limiter.ipv6PrefixLeading bits compared when grouping IPv6 clients48
limiter.linkTokenEnable the link_token bot-detection methodfalse
limiter.passIPCIDRs granted unrestricted access[]
limiter.blockIPCIDRs denied access outright[]
limiter.extraConfigRaw TOML appended to limiter.toml""
valkey.enabledDeploy the bundled Valkey subchartfalse
valkey.urlExternal Valkey URL, used when valkey.enabled is false""
valkey.existingSecret.nameSecret containing an external Valkey URL""
persistence.enabledMount a PVC at /var/cache/searxng for the favicon cachefalse
persistence.sizeRequested volume size1Gi
httpRoute.enabledCreate a Gateway API HTTPRoutefalse
httpRoute.parentRefsGateways the HTTPRoute attaches to; required when enabled[]
httpRoute.hostnamesHostnames the HTTPRoute matches[]
networkPolicy.enabledProtect bundled Valkey with a NetworkPolicytrue
networkPolicy.extraIngressAdditional raw NetworkPolicy ingress rules for bundled Valkey[]
resources.requests.cpuDefault CPU request100m
resources.requests.memoryDefault memory request256Mi
resources.limits.memoryDefault memory limit1Gi

Settings

The chart renders /etc/searxng/settings.yml from a small set of typed values on top of use_default_settings: true, so you inherit upstream's defaults and engine list. Anything not exposed as a typed value goes under searxng.settings, which is deep-merged over the chart's defaults:

searxng:
  baseURL: https://search.example.com
  existingSecret:
    name: searxng-secret
  settings:
    search:
      safe_search: 1
      autocomplete: duckduckgo
    ui:
      default_theme: simple
    engines:
      - name: wikipedia
        disabled: false

searxng.settings wins over the typed values, so searxng.settings.general.instance_name overrides searxng.instanceName. See the settings reference for every available key.

SEARXNG_BASE_URL, SEARXNG_SECRET, and SEARXNG_VALKEY_URL are injected as environment variables rather than written into the ConfigMap, keeping credentials out of it.

Rate limiting

Rate limiting is disabled by default and requires bundled or external Valkey. To enable bundled Valkey:

limiter:
  enabled: true
valkey:
  enabled: true

The chart fails the render with an explicit message if limiter.enabled is set without a bundled or external Valkey.

Trusted proxies

Behind a gateway or ingress, set limiter.trustedProxies to the source CIDRs seen by SearXNG. These may be proxy pod or node addresses, depending on your network configuration. An incorrect value can cause all users to be throttled as one client.

limiter:
  enabled: true
  trustedProxies:
    - 10.10.0.0/16  # Replace with your proxy source CIDR.

External Valkey

To use a Valkey you already run, leave valkey.enabled at false and point the chart at it:

limiter:
  enabled: true
valkey:
  url: valkey://valkey.data.svc.cluster.local:6379/0

For a URL containing credentials, supply it through a Secret instead:

valkey:
  existingSecret:
    name: valkey-credentials
    urlKey: valkey-url

Bundled Valkey

valkey.enabled: true pulls in the official valkey-io chart as a subchart. Configure it under the valkey key as usual:

valkey:
  enabled: true
  persistence:
    enabled: true
    size: 1Gi
  resources:
    requests:
      cpu: 50m
      memory: 64Mi

Routing

The chart creates only an HTTPRoute. It does not create a Gateway, because Gateways are usually owned by the cluster/platform layer. If the Gateway is in another namespace, its listener must allow routes from the SearXNG namespace with Gateway API allowedRoutes.

httpRoute:
  enabled: true
  parentRefs:
    - name: internal-gw
      namespace: gateway
      sectionName: https
      port: 443
  hostnames:
    - search.example.com

Persistence

SearXNG writes a favicon cache to /var/cache/searxng. The chart mounts an emptyDir there by default, which is fine — the cache rebuilds itself. Enable persistence to keep it across restarts.

NetworkPolicy

When bundled Valkey is enabled, the chart protects it by default: only SearXNG and Valkey replication peers may connect on TCP 6379. networkPolicy.extraIngress accepts additional raw NetworkPolicyIngressRule entries, for example a metrics scraper. Gateway, DNS, and upstream search-engine traffic is platform-specific and belongs in the deployment's platform policy.

Source

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