Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Description
Problem
SearXNG does not start a new pod when the Secret of its optional metrics endpoint is missing.
- PR fix(k8s): Scrape the SearXNG engine metrics #6755 (fix(k8s): Measure SearXNG throttle and stop CAPTCHA repeat #4201) made the init container
render-settingsofk8s/devops/searxng/deployment.yaml:69read the Secretdevops/searxng-metrics-authwith a required reference. - On 2026-11-22 the Secret did not exist (a person step of
k8s/README.md:821). The new podsearxng-ff6f7b56-*stayed inInit:CreateContainerConfigErrorfor more than 8 hours. The Deployment had 1 of 2 replicas ready, and the Applicationdevopswas Degraded. Search kept working only because the old ReplicaSet kept 1 pod. - The metrics endpoint is optional: search needs no metrics. A missing Secret of an optional feature must not stop the main service (the Grafana outage of feat(monitoring): enable the image renderer for panel checks #5193 had the same cause).
Proposed remedy
Make the reference optional (optional: true). When the Secret is missing, render-settings writes the settings with the OpenMetrics endpoint off and logs one line that names the Secret. The ServiceMonitor scrape then fails and its alert shows the missing Secret, but search runs.
Acceptance criteria
- A render test: with no Secret, the rendered settings turn the metrics endpoint off, and the init container exits 0.
- With the Secret, the rendered settings hold the password, as now.
-
k8s/README.mdrow ofdevops/searxng-metrics-authsays that the Secret is optional.
Dependencies
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 22, 2026
The missing Secret degraded the SearXNG Deployment for over 8 hours, leaving only 1 of 2 replicas ready.Both make an optional Secret reference non-blocking so the main service starts; #5200 targets Grafana renderer token, this targets SearXNG metrics Secret.dan-petty commentedon Nov 22, 2026
Evidence of 2026-11-22 for the remedy: the scrape does not fail while the Secret is missing. It is absent.
k8s-monitoring-alloy-metrics, componentprometheus.operator.servicemonitors) loggederror generating scrapeconfig from serviceMonitor ... name=searxng err="secrets \"searxng-metrics-auth\" not found"at 13:24 and at 18:39 UTC, and made no scrape config for the ServiceMonitor.upseries for SearXNG (up{namespace="devops"}gave onlyroadmap-service). An alert onup == 0cannot fire for this case.So the sentence of the remedy "The ServiceMonitor scrape then fails and its alert shows the missing Secret" is false here. A check that sees this case uses
absent(up{job="searxng"})(or the job label that the ServiceMonitor gives), and the docs say that Alloy reads the Secret only when it makes the scrape config.devops-cli-service commentedon Nov 23, 2026
Released in v0.197.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.197.0
devops-cli-service commentedon Nov 23, 2026
Live since 2026-11-23 01:38 UTC