Skip to content

fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795

Closed

Description

@dan-petty

Problem

devops k8s deploy-stack never applies the LLM gateway's NetworkPolicy. The Ollama tiers it deploys schedule only on nodes that carry a label nothing sets or documents. This was checked against release/v0.2.25 at 9c879ae.

The gateway runs with no policy.

The policy has dead and over-broad rules.

The egress test pins a fixed list. test_gateway_egress_admits_all_backends_in_configmap (tests/test_k8s_llm_gateway.py:476-506) never reads the ConfigMap. It asserts that the policy names ollama-volta-1, ollama, vllm and vllm-single. So it fails when those dead selectors are removed, and it passes when a ConfigMap backend is not admitted. #667 asked for a test covering every backend in the ConfigMap. _gateway_config() (:51-54, added by #962) already loads it. No test checks the other direction, that egress admits nothing beyond the backends. test_gateway_service_and_network_policy (:248-275) pins only the policy name, its podSelector and the ingress rule. The ipBlock rule, a podSelector: {} peer, or Egress dropped from policyTypes would each reopen egress with every test passing.

The Ollama tiers depend on an undocumented node label.

  • Every tier's required node affinity is nvidia.com/gpu.total-vram-gib In [...] (ollama-profiles.yaml:44-46, 145-147, 246-248, 349-351, 452-454, 555-557, 658-670, 771-773).
  • The accepted values are multiples of 4 GiB from 16Gi to 128Gi. Each tier takes a range: 16gib takes 16-20, 24gib 24-28, 32gib 32-44, 48gib 48-60, 64gib 64-68, 72gib 72-92, 96gib 96-124 and 128gib 128.
  • GPU Feature Discovery labels per-GPU memory (nvidia.com/gpu.memory) and the GPU count, not a total. In this repo, GitHub code search finds the label only in that manifest and in one task file. In dan-petty/homelab, which provisions the cluster's GPU nodes, it finds nothing.
  • So a fresh cluster, or a rebuilt node, schedules no Ollama pods, and every gateway route fails. deploy-stack does not notice.
  • The docs still describe placement by nvidia.com/gpu.family or nvidia.com/gpu.architecture (k8s/README.md:123-130). Every tier also keeps those selectors as six commented-out lines (ollama-profiles.yaml:38-43, and likewise in each tier). They are left over from the vLLM/Ollama architecture split, which feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734 removed.

The docs still describe a single Ollama StatefulSet.

  • k8s/README.md:130 lists an "ollama StatefulSet, one pod per node".
  • :132 says the gateway lists each pod as ollama-<n>.ollama-nodes.
  • The knowledge base says the same (src/devops_cli/ai/knowledge_base/devops_cli/tasks/k8s_stack_deployment.md:27).

Since #722, Ollama has run as one DaemonSet per VRAM tier behind ollama-<n>gib Services. #920 (v0.2.27) corrects the knowledge-base line, and #921 (v0.2.28) rewrites the README section. Neither says how the label gets onto a node.

Acceptance criteria

  • _MANIFESTS_BY_STACK["llm"] includes k8s/llm/gateway/networkpolicy.yaml, listed before gateway/deployment.yaml, so a fresh deploy never starts the gateway without its policy. teardown-stack deletes it. An offline test asserts both through the dry-run manifests and manifest_deletes details.

  • The gateway policy's egress admits only these, plus the vLLM rule (k8s/llm/gateway/networkpolicy.yaml:40-52) that chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820 removes:

    • Ollama tier pods (llm.devops.io/provider: ollama) on TCP 11434;
    • Valkey (app.kubernetes.io/name: valkey) on TCP 6379;
    • DNS to the kube-system namespace on UDP and TCP 53.

    The ollama-volta-1 selector, the app.kubernetes.io/name: ollama selector and the RFC 1918 ipBlock rule are removed. Ingress stays port 4000 from any source.

  • test_gateway_egress_admits_all_backends_in_configmap derives its backends from the files:

    • every api_base in the gateway ConfigMap;
    • LITELLM_REDIS_HOST and LITELLM_REDIS_PORT from the gateway Deployment.

    For each backend, the test finds the named Service in the k8s/llm manifests. It asserts that some egress rule has a podSelector whose matchLabels are a subset of that Service's selector, with a port equal to the Service's numeric targetPort. The test fails on any backend that is not an in-cluster Service defined in the repo, or whose Service has no selector. It also fails when any selector or port the gateway needs is removed.

  • A second offline test asserts that egress admits nothing else. It uses the backend Services the test above resolves, and checks:

    • policyTypes contains Egress, and the policy's podSelector matches the gateway Deployment's pod labels;
    • every egress rule has a non-empty to and a non-empty ports;
    • no peer is an ipBlock;
    • every podSelector peer has no namespaceSelector beside it, non-empty matchLabels and no matchExpressions, and is one of two kinds:
    • the only namespaceSelector peer is kubernetes.io/metadata.name: kube-system, without a podSelector, in a rule whose ports are exactly UDP 53 and TCP 53.

    The checks live in one helper that returns the violations. The test asserts that the helper returns none for the real policy. A parametrized test asserts that it returns at least one for each of these edits to a copy of the policy: the RFC 1918 ipBlock rule re-added; a podSelector: {} peer; the app.kubernetes.io/name: ollama selector, which stands for any selector that matches no backend Service (the cases spell no ollama-volta string, so the rg check below stays empty); a namespaceSelector: {} peer; a rule without ports; port 6379 added to the Ollama rule; and Egress removed from policyTypes.

  • When the llm stack is selected, deploy-stack reads the nodes and warns about GPU nodes without a usable label. It uses the kubectl get nodes -o json call it already makes, or one extra read.

    • A GPU node is one with nvidia.com/gpu capacity above zero, or one labelled nvidia.com/gpu.present=true.
    • It warns about every GPU node that lacks nvidia.com/gpu.total-vram-gib, or whose value no tier accepts. Each warning names the node, the label, and the command kubectl label node <node> nvidia.com/gpu.total-vram-gib=<N>Gi.
    • The accepted values are read from ollama-profiles.yaml, not repeated in code.
    • If no node matches any tier, it also warns that no Ollama pod will schedule.
    • If the node read fails, it says it could not check the label.
    • In every case the deploy continues and exits 0. A dry run reads no nodes.
    • Offline tests patch _run_cmd and cover four cases: a correctly labelled GPU node (no warning), an unlabelled GPU node, a value outside every tier, and a node without GPUs (no warning).
  • The GPU placement section of k8s/README.md says:

    • Ollama runs as one DaemonSet per total-VRAM tier, behind ollama-<n>gib Services, and is scheduled by nvidia.com/gpu.total-vram-gib.
    • How to work out the value: the sum of nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits on the node, converted to GiB, rounded to the nearest multiple of 4 and suffixed with Gi.
    • The kubectl label node command.
    • Which values each tier accepts.
    • That deploy-stack warns about GPU nodes without the label.
    • That deploy-stack applies llm-gateway-perimeter, and what the policy admits.
  • The commented-out nvidia.com/gpu.architecture and nvidia.com/gpu.family selectors are removed from all eight tiers.

  • Each of these prints nothing:

    • rg -n ollama-volta k8s src tests
    • rg -n 'ollama-nodes|Ollama StatefulSet|`ollama` StatefulSet' k8s/README.md src/devops_cli/ai/knowledge_base
    • rg -n 'gpu\.(family|architecture)' k8s/llm k8s/README.md
  • Tests touch no cluster and no network. uv run devops ci passes. A changelog.d/795.md fragment records the change.

  • Person-run, on homelab-k3s, after devops k8s deploy-stack --stack llm:

    • kubectl -n llm get networkpolicy llm-gateway-perimeter shows the policy.
    • Through the gateway NodePort, /v1/models, one devops-chat completion and one bge-m3:latest embedding succeed. The gateway log shows no connection errors to Valkey or the tiers.
    • kubectl get nodes -L nvidia.com/gpu.total-vram-gib shows a value on every GPU node. deploy-stack printed a label warning only for nodes without one.

Key questions

Depends on: none.
Order: after #953 (v0.2.25), #920 (v0.2.27) and #921 (v0.2.28), which edit nearby lines; before #913 (v0.2.29).
Related: #913 (the same gap for the monitoring perimeter), #820 (vLLM leftovers, including the gateway's vLLM rule), #755 (v0.2.27: Argo CD syncs k8s/llm/; this item rebases on it), #667 (added the policy).

Monitoring cleanup amendment (2026-10-03): the gateway's ServiceMonitor moves to the llm stack

The gateway's ServiceMonitor is rendered from k8s/monitoring/k8s-monitoring-values.yaml:233-249 (extraObjects), so the infra stack's k8s-monitoring release owns it. Live, it carries meta.helm.sh/release-name=k8s-monitoring. As a result:

  • teardown-stack --stack infra deletes the llm gateway's scrape while the gateway keeps running;
  • after teardown-stack --stack llm deletes namespace llm, deploy-stack --stack llm doesn't recreate the scrape until the next infra deploy.

Acceptance criteria (added).

  • The ServiceMonitor moves to k8s/llm/gateway/servicemonitor.yaml and is listed in _MANIFESTS_BY_STACK["llm"], which deploy and teardown both iterate. The extraObjects entry is deleted.
  • tests/test_llm_pool_metrics.py:40 and tests/test_stack_dashboards.py::_gateway_monitored read the new file.
  • prometheusOperatorObjects (collector alloy-metrics) keeps discovering it. The CRD still comes from the infra stack's prometheus-operator-crds, so an llm-only deploy on a cluster without infra tolerates the missing CRD, as the existing kubectl apply with check=False already does. Under feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755, the file belongs to the llm Application.
  • Pending a person: up{job="llm-gateway"} == 1 after deploy-stack --stack llm alone on a cluster that already has the infra stack, and helm get manifest k8s-monitoring -n monitoring | grep -c ServiceMonitor prints 0.

Grouping. This item is a child of #1128. It removes extraObjects from k8s-monitoring-values.yaml last, after the other children that edit that file. The open owner decision on #1042's selectors is unaffected. v0.2.29 and P1 are unchanged.

Update 2026-10-08: scope reduced to the gateway policy

Owner decision. This item now covers only the gateway policy:

  • devops k8s deploy-stack applies llm-gateway-perimeter with the llm stack;
  • the policy loses the selectors that match no pod and the RFC 1918 ipBlock rule;
  • the egress test stops pinning the dead names.

#1042's live nvidia.com/gpu.architecture selectors on ollama-24gib, ollama-48gib and ollama-48gib-slow stay as they are. This takes option 1 from the 2026-10-03 comment, the status quo. The node-provisioning automation sets nvidia.com/gpu.architecture on every GPU node, which supports keeping them.

Suggested title: fix(k8s): deploy-stack applies the LLM gateway policy, and its egress admits only the gateway's backends.

Acceptance criteria (these replace every list above).

  • _MANIFESTS_BY_STACK["llm"] lists k8s/llm/gateway/networkpolicy.yaml before gateway/deployment.yaml, and teardown-stack deletes it. An offline test asserts both through the dry-run manifests and manifest_deletes details, and asserts that neither dry run makes a request.

  • The gateway's egress admits only these, plus the vLLM rule that chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820 removes:

    • the Ollama tiers (llm.devops.io/provider: ollama) on TCP 11434;
    • Valkey on TCP 6379;
    • DNS to kube-system on UDP and TCP 53.

    The ollama-volta-1 selector, the app.kubernetes.io/name: ollama selector and the RFC 1918 ipBlock rule are removed. Ingress stays TCP 4000 from any source.

  • test_gateway_egress_admits_all_backends_in_configmap derives its backends from every ConfigMap api_base and from the Deployment's LITELLM_REDIS_HOST and LITELLM_REDIS_PORT. It resolves each one to a Service under k8s/llm and asserts a podSelector-subset rule on that Service's numeric targetPort, as in the original criterion.

  • A second offline test asserts that egress admits nothing else, through one violations helper and the seven parametrized widening edits of the original criterion. Any ipBlock is a violation, so the ipBlock case uses a documentation range.

  • rg -n ollama-volta k8s src tests prints nothing.

  • Tests touch no cluster, DNS or network. A changelog.d/795.md fragment records the change, and uv run devops ci passes.

  • Pending a person: after Argo CD syncs the merged revision, or after devops k8s deploy-stack --stack llm on a cluster without Argo CD:

    • the policy shows no ipBlock;
    • /v1/models, a devops-chat completion and a bge-m3:latest embedding succeed through the gateway;
    • the gateway's log shows no Valkey or tier connection errors.

    If a route fails, the rollback is a revert.

Moved to #1367:

  • the deploy-stack warning for GPU nodes no tier accepts;
  • the k8s/README.md GPU placement section, including what the gateway policy admits;
  • removal of the commented-out selector blocks;
  • the move of the gateway's ServiceMonitor out of extraObjects.

That issue also takes this item's place as step 7 in #1128's order.

Corrected premises (checked at 910b823).

  • feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 landed, so Argo CD's llm Application already syncs the policy through k8s/llm/kustomization.yaml. The deploy-path gap remains only on clusters without Argo CD. The Applications track main, so the narrowed egress reaches an Argo CD cluster only after the release merges, and the person-run check runs then.
  • deploy-stack runs kubectl apply with check=False and never reads the result (_apply_single_manifest). Listing the policy before the Deployment means it is applied first. It does not mean "a fresh deploy never starts the gateway without its policy", and that wording is dropped.
  • The ConfigMap's backends are the alias Services ollama-16gib-fast, ollama-48gib-fast, ollama-48gib-slow and ollama-64gib-standard, plus valkey. Each is an in-cluster Service with a selector and a numeric targetPort, and no Ollama tier uses the host network.
  • These premises now belong to the follow-up:
    • The profiles file has nine Ollama DaemonSets, not eight.
    • Six of them carry a six-line commented-out block, 36 lines in all.
    • "Every tier is scheduled only by total-vram-gib" is false since feat(llm): add speed-tier service aliases, align 48gib slow routing weights and bump max loaded models #1042.
    • "Nothing sets the label" is stale: the node-provisioning automation, outside this repository, sets total-vram-gib on multi-GPU nodes only, rounded to whole GiB.
    • The warning must run before deploy-stack's Argo CD early return, and _get_unready_nodes hides read failures.

Coordination. #913's guard test exempts llm-gateway-perimeter under #795. Whichever of the two merges second deletes that exemption.

Activity

  1. added
    type/bug
    scope/k8s
    priority/p2-medium
    on Oct 1, 2026
  2. added
    priority/p1-high
    and removed
    priority/p2-medium
    on Oct 2, 2026
  3. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Grooming (2026-10-02): Priority p2-medium → p1-high. deploy-stack on a fresh cluster or a rebuilt node schedules no Ollama pods, so the command is broken. The gateway also runs with no NetworkPolicy (unrestricted egress), which is a security exposure.

    Checked against the code at the release/v0.2.25 tip.

  4. added this to the v0.2.29 milestone on Oct 2, 2026
  5. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Placed in v0.2.29 on 2026-10-02. v0.2.29 holds P1 work that has to land before v0.3.0, which v0.2.25 to v0.2.28 had no room for. Backlog P1 items were ranked by Value, then Effort, with defects and security fixes first at a tie. This item ranked in the top ten, and two of the release's twelve slots stay open for P1 items that surface before then.

  6. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Refined to Ready on 2026-10-02 for v0.2.29. The body was checked claim by claim against release/v0.2.25 at 9c879ae, and a second agent then tried to refute it; every major objection was resolved in a revision. Cited lines were updated for code that moved, and the scope was corrected where merged work changed it. Acceptance criteria were tightened so each fails on the current code, and every key question now has a proposed answer.

  7. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Owner decision needed: #1042's selectors conflict with this issue's acceptance check. The S10 evaluation found this (.data/review-evaluation-20261003-s10.md, section 4); no review finding raised it. I have changed no code or manifest.

    #1042 (f5fdf40) turned the commented-out selectors into live nvidia.com/gpu.architecture selectors on 3 tiers of k8s/llm/profiles/ollama-profiles.yaml (lines at the release/v0.2.25 tip):

    • ollama-24gib (:143-145): In [pascal, maxwell, kepler];
    • ollama-48gib (:346-348): In [ampere, ada-lovelace, blackwell, hopper];
    • ollama-48gib-slow (:448-450): In [pascal, maxwell, kepler].

    The conflicts:

    • The acceptance check. rg -n 'gpu\.(family|architecture)' k8s/llm k8s/README.md must print nothing. It now also prints these 3 live selectors, besides the commented-out lines and k8s/README.md:124 that this issue already removes.
    • The docs. k8s/README.md:124 and task-668 (docs/agent/tasks/task-668-*.md:14) say placement accepts either GFD's nvidia.com/gpu.family or nvidia.com/gpu.architecture. The new selectors read only gpu.architecture. On a node with only the GFD family label, the 24gib, 48gib and 48gib-slow tiers would never schedule [inference].
    • Coverage. 24 GiB Volta, Turing and Ampere-or-newer nodes, and 48 GiB Volta and Turing nodes, now match no tier.

    Signs that it is intended:

    • src/devops_cli/k8s/gpu_matrix.py describes the homelab as Blackwell 16, Pascal 24 and 48, Ampere 48 and Volta 64 GiB.
    • S10's live calls were served by 48gib-fast and 48gib-slow, so the current nodes carry the label.

    The options:

    1. Keep the architecture selectors. This issue's check, the README and deploy-stack's label warning then require nvidia.com/gpu.architecture on GPU nodes.
    2. Move the speed split to another label and keep the check as written.
  8. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    #755 (v0.2.27, reworked) replaces the broken llm-stack Application and removes the ca-configmap.yaml entry. The live gateway policy equals this file, so #755 syncs it as it is until this item changes it.

  9. changed the title [-]fix(k8s): deploy-stack never applies the gateway policy and ollama tiers need an undocumented label[/-] [+]fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress[/+] on Oct 8, 2026
  10. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1369, merged into release/v0.2.29 as 230e250.

    Closes #795

    The owner reduced the scope on 2026-10-08. This PR delivers only the gateway-policy part; the GPU-label warning, the README GPU placement section, the commented-out selector cleanup and the ServiceMonitor move are in #1367.

    • Deploy path: _MANIFESTS_BY_STACK["llm"] lists k8s/llm/gateway/networkpolicy.yaml right after the gateway ConfigMap, so a native deploy-stack --stack llm applies llm-gateway-perimeter before the gateway Deployment, and teardown deletes it. A dry-run test asserts the order and the delete, with no request made.
    • Egress narrowed: the dead ollama-volta-1 and app.kubernetes.io/name: ollama selectors and the RFC 1918 ipBlock rule are removed. The gateway reaches only the Ollama tiers (TCP 11434), Valkey (TCP 6379) and DNS in kube-system; the vLLM rule stays for chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820. feat(llm): add speed-tier service aliases, align 48gib slow routing weights and bump max loaded models #1042's live nvidia.com/gpu.architecture selectors are unchanged.
    • Tests: the egress test derives the backends from the gateway ConfigMap's api_base values and the Deployment's Valkey settings and resolves each to its Service. A second test asserts egress admits nothing else, with seven widening edits that each fail it. rg -n ollama-volta k8s src tests prints nothing.

    uv run devops ci passes locally.

    Merge coordination: #913's guard test exempts ("llm", "llm-gateway-perimeter") under #795. Whichever of the two PRs merges second deletes that exemption.

    Pending a person after merge: the checks in the task file (no ipBlock in the live poli…

    6 file(s) changed.

    How it was verified

    Check runs at 11b471d:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Analyze (actions): pass
    • DevContainer Image: skipping
    • Tests & Coverage: pass
    • Static Analysis: pass
    • Analyze (python): pass
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-795-deploy-stack-applies-gateway-policy.md:

    • _MANIFESTS_BY_STACK["llm"] lists k8s/llm/gateway/networkpolicy.yaml before gateway/deployment.yaml, and teardown-stack deletes it. tests/test_k8s.py::test_llm_stack_applies_the_gateway_policy_before_the_gateway_and_deletes_it runs both dry runs under forbid_requests and asserts the manifests order, the manifest_deletes entry, and that no request is made. On the base revision it fails with (0, 0, False, False, []) != (0, 0, True, True, []).

    • The gateway's egress admits only the Ollama tiers on TCP 11434, Valkey on TCP 6379, DNS to kube-system on UDP and TCP 53, and the vLLM rule chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820 removes. The ollama-volta-1 selector, the app.kubernetes.io/name: ollama selector and the ipBlock rule are gone. Ingress stays TCP 4000 from any source.

    • tests/test_k8s_llm_gateway.py::TestK8sLLMGatewayManifests::test_gateway_egress_admits_all_backends_in_configmap reads its backends from the files: every ConfigMap api_base (urllib.parse.urlsplit), plus LITELLM_REDIS_HOST and LITELLM_REDIS_PORT from the gateway Deployment. It resolves each one against the <name>.<namespace>.svc.cluster.local name of every Service under k8s/llm. It fails when a backend is not such a Service, or when the Service has no selector or no numeric targetPort on the called port. It also fails when no egress rule has a podSelector whose matchLabels are a subset of the Service's selector on that targetPort. Removing the Ollama rule, or moving Valkey to another port, makes it name the affected backends.

    • test_gateway_egress_admits_nothing_else asserts that _egress_violations returns nothing for the real policy. That helper checks five things:

      • the policy selects the gateway's pod labels and enforces Egress;
      • every rule has a non-empty to and ports;
      • no peer is an ipBlock;
      • a podSelector peer stands alone and has matchLabels but no matchExpressions;
      • each peer is one of three kinds: a subset of a backend Service's selector, on those backends' TCP targetPorts only; one of the three vLLM selectors in _VLLM_SELECTORS, on TCP 8000; or the kube-system DNS peer, on exactly UDP and TCP 53.

      On the base revision the test fails, listing the two dead selectors and the three ipBlock peers. test_each_widening_edit_is_a_violation applies seven edits to a copy of the policy:

      • an ipBlock rule (an RFC 5737 range stands in, since any ipBlock fails);
      • a podSelector: {} peer;
      • the app.kubernetes.io/name: ollama selector;
      • a namespaceSelector: {} peer;
      • a rule without ports;
      • 6379 on the Ollama rule;
      • Egress removed from policyTypes.

      Each edit yields at least one violation.

    • rg -n ollama-volta k8s src tests prints nothing.

    • The tests read files, or run the CLI in dry-run mode with every subprocess, keyring and socket call refused. Each test's call phase stays under 1 s, and the egress inputs are read once per module.

    • Pending a person: once the release merges and Argo CD syncs the llm Application, or after uv run devops k8s deploy-stack --stack llm on a cluster without Argo CD:

      • kubectl -n llm get networkpolicy llm-gateway-perimeter -o jsonpath='{.spec.egress[*].to[*].ipBlock}' prints nothing.
      • With kubectl -n llm port-forward svc/llm-gateway 4000:4000 running and KEY set to the gateway's master key:
        • curl -sS -H "Authorization: Bearer $KEY" http://localhost:4000/v1/models lists the models;
        • curl -sS -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' http://localhost:4000/v1/chat/completions -d '{"model":"devops-chat","messages":[{"role":"user","content":"ping"}]}' returns a completion;
        • curl -sS -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' http://localhost:4000/v1/embeddings -d '{"model":"bge-m3:latest","input":"ping"}' returns an embedding.
      • kubectl -n llm logs deploy/llm-gateway --since=15m | grep -ciE '(error|exception|refused|timeout).*(redis|valkey|ollama)|connecterror' prints 0. It counts only error lines, so normal startup lines that mention Redis do not count.
      • If a route fails, revert this change. The removed ipBlock rule was the only one that did not depend on pod labels.
  11. added a commit that references this issue on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/k8stype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions