Repository navigation
fix(k8s): start SearXNG when its metrics Secret is missing - #6811
Conversation
The plan of #6805 as an OpenSpec change.
… its metrics Secret The check of the k8s row runs the script of the init container against the volumes that the kubelet mounts. Without Secret devops/searxng-metrics-auth, the kubelet does not start the init container, because its reference to the Secret is required.
The reference of render-settings to Secret devops/searxng-metrics-auth is optional. With no password, the script writes an empty general.open_metrics, which turns /metrics off, and logs one line that names the Secret.
The metrics are an optional feature, so the row of devops/searxng-metrics-auth is in OPTIONAL_FEATURE_SECRETS and a push with no password skips it.
Entry password of devops/searxng-metrics-auth is not required, and OPTIONAL_FEATURE_SECRETS names the row, so deploy-stack does not stop on the password of an optional feature.
The Cluster Secrets paragraph and the SearXNG section say what the pod, /metrics and Alloy do while Secret devops/searxng-metrics-auth is missing.
What the scrape does while the Secret is missingThe ServiceMonitor So no A push that adds the password to an existing Secret restarts Person step
Review points
|
…thing A push restarts the workloads of a changed Secret only. A push that creates Secret devops/searxng-metrics-auth restarts nothing, so the running pod keeps the endpoint off. The documents now tell the person to restart deployment/searxng after such a push.
🤖 I have created a release *beep* *boop* --- ## [0.197.0](v0.196.0...v0.197.0) (2026-11-23) ### Features * **repos:** report the drift of onboarded repositories nightly ([#6816](#6816)) ([7432f0f](7432f0f)) * **roadmap:** Add toolsets for implement and review ([#6810](#6810)) ([ec5b16b](ec5b16b)) ### Bug Fixes * **deps:** update container images ([#6817](#6817)) ([fb349e5](fb349e5)) * **k8s:** start SearXNG when its metrics Secret is missing ([#6811](#6811)) ([a11d112](a11d112)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
SearXNG starts and searches when Secret
devops/searxng-metrics-authis missing. Only/metricsis off.render-settingsto the Secret isoptional: true. With no password, the script writes''forgeneral.open_metrics, logs one line that names the Secret and exits 0, and/metricsanswers HTTP 404.k8srow runs the script withshagainst the volumes that the kubelet mounts, with and without the Secret.passwordof rowdevops/searxng-metrics-authis not required, andOPTIONAL_FEATURE_SECRETSnames the row, so a push with no password skips it with a warning.k8s/README.mdanddocs/CLUSTER.mdsay that the Secret is optional. While it is missing, Alloy makes no target from ServiceMonitorsearxng, soTargetDowndoes not fire.Closes #6805
Change:
openspec/changes/archive/2026-11-22-6805-searxng-optional-metrics-secret/