Repository navigation
Description
Problem
devops k8s deploy-stack --stack llm applies a changed gateway ConfigMap but does not restart the gateway. The gateway keeps serving the old model list until a person restarts it. The change that moves the gateway embedding group from bge-m3:latest to qwen3-embedding:0.6b (#481) found this.
Evidence
- The task file of feat(ai): embeddings through the llm gateway, with embedding model evaluation #481 lists a person step to restart the gateway after the ConfigMap deploy, and the Trade-offs bullet says a person may file an issue.
- A workload that reads a ConfigMap as a file or an environment value does not reload it when the ConfigMap changes.
- The rule
Mandatory Comprehensive Kubernetes Stack Deploymentsays thatdeploy-stack --stack allmust deploy, synchronize and update all cluster resources. A deploy that leaves a stale pod does not meet it.
Remedy
Use an open mechanism and not a hand-written restart: either a configMapGenerator with a content-hash name in kustomize, so a changed ConfigMap changes the pod template and Kubernetes rolls the deployment, or a hash annotation on the pod template. Check whether the stack already uses kustomize or Helm for the gateway before choosing. Add a test that renders the manifests and shows that a changed ConfigMap changes the pod template. Do not run kubectl rollout restart from the deploy command.
Proposed design
Problem statement
A changed gateway ConfigMap does not restart the gateway pod. The pod keeps serving the old model list until manually restarted. This leaves a stale pod in the cluster.
Acceptance criteria
- Criterion 1: A changed gateway ConfigMap triggers a rolling update of the gateway deployment
Verification: Run 'devops k8s deploy-stack --stack llm' with a changed ConfigMap and verify the gateway pod restarts - Criterion 2: The deployment command does not use manual kubectl rollout restart
Verification: Check that no 'kubectl rollout restart' command is present in the deploy-stack implementation - Criterion 3: The stack uses kustomize or Helm for the gateway
Verification: Verify the gateway manifest files are managed by kustomize or Helm in the repository
Key questions
- Does the stack already use kustomize or Helm for the gateway?: The context shows that kustomize is used for monitoring dashboards with configMapGenerator. The stack likely uses kustomize for the gateway as well. [sources: CONTEXT.md]
- Should we use configMapGenerator with content-hash name or hash annotation on pod template?: Use configMapGenerator with content-hash name in kustomize as it is the preferred method for triggering rolling updates when ConfigMaps change. (proposed)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate fixes a problem with gateway deployment behavior.A changed ConfigMap does not restart the gateway, leaving stale pods.Users see outdated model lists until manual restart occurs.Requires changes to kustomize or Helm and adding a test.feat(k8s): serve qwen3-embedding:0.6b as the gateway embedding model (#…
dan-petty commentedon Oct 23, 2026
Status set to Ready at f98ccd1 (see proposed design in issue body).
feat(release): v0.2.39 (#1947)
fix(k8s): open webui, the ollama ingress, the gateway and the cli's d…
dan-petty commentedon Oct 23, 2026
Re-scope from the #1654 work (2026-10-23). Argo CD renders
k8s/llmwith kustomize, and the native deploy-stack applies each llm file withkubectl apply -f. A hash annotation in plain manifests must be kept by hand and cannot meet "a changed ConfigMap changes the pod template". Proposed: put aconfigMapGeneratorink8s/llm/gateway/kustomization.yaml, apply the gateway withkubectl apply -kfrom deploy-stack after the Secret push, move the LiteLLM config intogateway/config.yaml, and pointDEFAULT_LLM_GATEWAY_CONFIGMAP_PATHanddevops ai gateway renderat it. Note: the #1654 merge changes the gateway pod template, so it rolls the gateway pod that has run since 2026-10-05 onto the current ConfigMap once.fix(k8s): the llm valkey cache requires a password and admits only it…
fix(k8s): the gateway sends embeddings to every serving ollama tier, …
fix(k8s): a changed gateway ConfigMap rolls the gateway deployment, s…
fix(k8s): a changed gateway ConfigMap rolls the gateway deployment, s…