Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
docs(helm): create the evidence ConfigMap in the release namespace (#599)
Krisztian Gajdar08dfd6d42e6a
diff --git a/deploy/helm/sie-cluster/README.md b/deploy/helm/sie-cluster/README.mdindex 098fb81c5..82d33ffb8 100644--- a/deploy/helm/sie-cluster/README.md+++ b/deploy/helm/sie-cluster/README.md@@ -797,9 +797,10 @@ Below, `<fullname>` is the chart's full name: `<release>-sie-cluster`, or- An upstream of kind `openai` may also declare `equivalence` (`max_age_s`, atmost 604800, and `record_files`): the evidence that lets a model serve`encode` or `score` from both its local and its remote profile. Put the- evidence files in a ConfigMap you create, for example- `kubectl create configmap remote-equivalence --from-file=bge-m3.json`, and set- `workers.remote.equivalence.configMap` to its name. Remote lanes mount it+ evidence files in a ConfigMap you create in the release namespace, for+ example+ `kubectl create configmap remote-equivalence -n <NAMESPACE> --from-file=bge-m3.json`,+ and set `workers.remote.equivalence.configMap` to its name. Remote lanes mount itread-only at `/etc/sie/equivalence`, and every `record_files` path must thenbe `/etc/sie/equivalence/<key>`. No other lane receives it. Remote lanes readthe files when they use them, so replacing the ConfigMap's data takes effect@@ -847,7 +848,7 @@ Below, `<fullname>` is the chart's full name: `<release>-sie-cluster`, orat start (`Bundle file not found`) and the lane restarts in a loop.- Workers read their environment at start. After rotating an upstream'sSecret, restart the remote lane:- `kubectl rollout restart statefulset/<fullname>-worker-remote-remote`.+ `kubectl rollout restart statefulset/<fullname>-worker-remote-remote -n <NAMESPACE>`.A change to `upstreams` restarts it automatically.#### Network policy for remote lanesdiff --git a/tools/ci/tests/test_helm_render.py b/tools/ci/tests/test_helm_render.pyindex ffbfa5b5d..ff03ae0c2 100644--- a/tools/ci/tests/test_helm_render.py+++ b/tools/ci/tests/test_helm_render.py@@ -1744,20 +1744,23 @@ def test_a_remote_lane_without_remote_serving_mounts_no_evidence(tmp_path: Path)assert evidence_mounts(rendered_documents(tmp_path, evidence_values(serving=False))) == {}-def test_replacing_the_evidence_does_not_restart_the_remote_lane(tmp_path: Path) -> None:- def template_annotations(values: dict) -> dict:+def test_the_evidence_config_map_reaches_the_pod_template_only_as_its_volume(tmp_path: Path) -> None:+ def template(values: dict) -> dict:(statefulset,) = [docfor doc in rendered_documents(tmp_path, values)if doc["kind"] == "StatefulSet" and doc["metadata"]["name"] == REMOTE_WORKER[1]]- return statefulset["spec"]["template"]["metadata"]["annotations"]+ return statefulset["spec"]["template"]- before = evidence_values()- after = evidence_values()- after["workers"]["remote"]["equivalence"]["configMap"] = "other-evidence"+ renamed = evidence_values()+ renamed["workers"]["remote"]["equivalence"]["configMap"] = "other-evidence"+ template_after = template(renamed)+ for volume in template_after["spec"]["volumes"]:+ if volume.get("configMap", {}).get("name") == "other-evidence":+ volume["configMap"]["name"] = EVIDENCE_CONFIG_MAP- assert template_annotations(before) == template_annotations(after)+ assert template(evidence_values()) == template_after@pytest.mark.parametrize(