Funk-lab/k8s/apps/searxng/configmap.yaml
ALI YESILKAYA 73b52cde2c
feat(stt): recherche web (SearXNG in-cluster) + fix cluster_status (#49)
Phase 2 d'Asa agentique : nouvel outil web_search adossé à un SearXNG
self-host in-cluster, + correction du faux positif de cluster_status.

- SearXNG (k8s/apps/searxng/) : Deployment + Service + ConfigMap settings.yml
  + IngressRoute searxng.lab.local, Application ArgoCD. Namespace ai, interne
  (l'outil tape http://searxng:8080). use_default_settings + search.formats
  inclut json (sinon API JSON 403) ; limiter/image_proxy off ; image pinnée ;
  conf copiée dans un emptyDir via initContainer (contourne le mount RO) ;
  PodSecurity restricted.
- Outil web_search (tools._web_search) ajouté au contexte asa + STT_SEARXNG_URL.
- fix(cluster_status) : les pods de CronJob TERMINÉS (Succeeded/Failed, ex.
  sacrifice-assign-renfort) comptaient comme « non prêts » → fausse alarme.
  Join kube_pod_status_phase{phase=~"Running |Pending"} (3 faux positifs → 0,
  validé in-cluster).
- Serveur 0.8.0 ; doc stt.md + journal mis à jour.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 22:10:59 +02:00

29 lines
1,012 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: searxng-settings
namespace: ai
data:
# SearXNG hérite de ses défauts (tous les moteurs) via use_default_settings, puis on
# surcharge le strict nécessaire. CRITIQUE : `search.formats` doit inclure `json` — sinon
# l'API JSON (utilisée par l'outil web_search d'Asa) renvoie 403. Instance INTERNE au
# cluster (pas d'Ingress WAN) : limiter/botdetection off, image_proxy off.
settings.yml: |
use_default_settings: true
general:
instance_name: "Funk SearXNG"
debug: false
server:
# secret_key d'une instance INTERNE (HMAC image-proxy, ici désactivé) — sensibilité
# faible. Déplaçable vers un Secret + SEARXNG_SECRET plus tard si besoin.
secret_key: "3c7090f1caa8fb060ad99e432fd9523aa8dacbfb134438ff02afbddf6cf350ad"
limiter: false
image_proxy: false
search:
formats:
- html
- json
safe_search: 0
autocomplete: ""
ui:
static_use_hash: true