Phase 3 lane 1 of FlowerCore.Shared.Indexing rollout — wires the new search consumer in FlowerCore.Intranet.Web to live infrastructure. Manifest changes: - Image bump: localhost/fc-intranet-web:latest -> :v202604240040search. Built from FlowerCore.Intranet.Web@feat/shared-indexing-search and imported into all three RKE2 nodes (rke2-server, rke2-agent1, rke2-agent2) via ctr import. Both :latest and :v202604240040search tags are present. - New PersistentVolumeClaim intranet-vector-store (1Gi, ReadWriteOnce, Longhorn) mounted at /data for the SQLite vector store (intranet-vectors.db). - New emptyDir volume notes-corpus (1Gi sizeLimit) shared between the init container and main container, mounted at /srv/flowercore-notes (read-only in the main container). - New init container clone-notes-corpus (alpine/git) that shallow-clones https://github.com/astoltz/FlowerCore.Notes.git (codex/notes-pimanager-live-drift) into /srv/flowercore-notes on every pod start. Re-clone is cheap (depth=1) and re-runs of git fetch + reset --hard are idempotent. - Strategy switched to Recreate for the deployment, since the new RWO PVC blocks rolling updates — see CLAUDE.md memory "RWO PVC blocks K8s rolling updates". - Resource bumps: memory 128Mi -> 256Mi req, 512Mi -> 1Gi limit; CPU 500m -> 1000m limit. The DocsCorpusIndexer + Ollama HTTP calls add measurable load during the initial index build. - initialDelaySeconds bumps on both probes (10s -> 30s liveness, 5s -> 10s readiness) to account for startup-time Ollama probing and the slightly larger image. The DocsCorpusIndexer waits 15s after host startup before its first indexing pass, then loops every RescanInterval (default 1h). Its first run will: 1. Embed all *.md under /srv/flowercore-notes/docs against nomic-embed-text on edge1 (10.0.57.17:11434). 2. Embed all *.html under /srv/flowercore-notes/docs/dashboards. 3. Persist chunks + embeddings to /data/intranet-vectors.db. Verify after rollout: - kubectl -n intranet logs deploy/intranet-web -c clone-notes-corpus (init container should show the docs/ listing). - kubectl -n intranet logs deploy/intranet-web -f (DocsCorpusIndexer should log "Indexing docs root 'notes-md'..." then "Docs root 'notes-md' indexed: N files, M chunks, M stored"). - curl -sk https://intranet.iamworkin.lan/api/search/indexes -> ["notes-html","notes-md"] - curl -sk 'https://intranet.iamworkin.lan/api/search?q=guacamole+single+host&topK=3' -> hits from docs/infrastructure/guacamole-customization-plan.md Companion source on FlowerCore.Intranet.Web@feat/shared-indexing-search. Depends on FlowerCore.Common@feat/shared-indexing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3.4 KiB
3.4 KiB