mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1421] [CLOSED] docs/kubernetes: manifests for one Strata server on a GPU node (kubectl, Kustomize, kapp) #3444
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3444
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1421
Author: @blange48
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:docs-kubernetes📝 Commits (1)
48bb7acdocs/kubernetes: manifests for one Strata server on a GPU node (kubectl apply -k, Kustomize, kapp)📊 Changes
8 files changed (+286 additions, -0 deletions)
View changed files
📝
docs/INSTALL.md(+3 -0)➕
docs/kubernetes/README.md(+105 -0)➕
docs/kubernetes/alerts.yaml(+49 -0)➕
docs/kubernetes/deployment.yaml(+84 -0)➕
docs/kubernetes/kustomization.yaml(+14 -0)➕
docs/kubernetes/namespace.yaml(+4 -0)➕
docs/kubernetes/pvc.yaml(+12 -0)➕
docs/kubernetes/service.yaml(+15 -0)📄 Description
docs/kubernetes: one Strata server on a GPU node
Plain manifests next to
docs/monitoring/, so the Docker image can run on Kubernetes without anyone rediscovering thesame traps. They run the image built from the
Dockerfilethroughdocker-entrypoint.sh, so every setting is one ofthe entrypoint's env vars, exactly as in INSTALL.md's Docker section. They work with
kubectl apply -k, Kustomize,Argo CD / Flux, or kapp (
kapp deploy -a strata -f <(kubectl kustomize docs/kubernetes) --wait-timeout 2h).kustomization.yamlstrataand the image name to setnamespace.yaml,pvc.yamldeployment.yamlRecreate,runtimeClassName: nvidia,IPC_LOCK, no memory limit, start-up probe andprogressDeadlineSecondsof 2 h,terminationGracePeriodSeconds: 90, a/dev/shmemptyDirservice.yamlhttp, labelapp: strata: whatdocs/monitoring/servicemonitor.yamlalready selects, and the samestrata-api-keysecretalerts.yamlREADME.mdCONFIG, several GPUs, memory, stopping, updating, monitoringINSTALL.md's Docker section links to it (two lines).
What the README warns about (each one bit us)
host.CONFIG(0.1.40.3, thanks for #1244) is the way to run an edited config, but the file'sown
"host"must be"0.0.0.0". A config written withHOST=127.0.0.1(ours was, behind an nginx sidecar)listens on the pod's loopback, so the probes fail and the Service gets "connection refused".
HOSTonly applies whensetup writes a config.
progressDeadlineSeconds: 7200,kubectl rollout status(and Argo / kapp waits) report a first start that is still downloading as failed after10 min.
docker buildalone leaves the image in Docker's store, and thepod sits in
ErrImageNeverPull. The README gives thek3s ctr images importline and the check before deploying.Config:line. A server that quietly starts the wrong config still answers, only slower (we saw 138instead of 390 tok/s at 8 clients). Check the entrypoint's line after every change.
StrataBatchSlotsMissingcatches the batch case.
IPC_LOCK, the runtime'sRLIMIT_MEMLOCK, no cgroup memory limit unlessLOW_RAM=on), thestop that takes longer than 30 s, and
Recreate, since two servers don't fit on the same GPUs.Tested
On k3s v1.36.4+k3s1 (single node, 4× RTX 5080 16 GB, NVIDIA Container Toolkit,
runtimeClassName: nvidia), image builtfrom this branch's
main(0.1.40.3,CUDA_ARCHITECTURES=120) and imported withk3s ctr. The manifests came fromkubectl kustomize docs/kubernetes, with the namespace and names changed for the test, an existing volume (so nodownload),
GPUS=0,1,2,3, 4 GPUs requested, andCONFIGpointing to a--batch 8 --batch-groups 4config:kubectl apply --dry-run=server, thenapply: rolled out, ready in 102 s;Config: /data/config/...json (from CONFIG);/healthok,/metricsreports engine 0.1.40.3 and 8 batch slots, a chat completion answers,1 / 4 / 8 clients give 123 / 178 / 377 tok/s, and the Prometheus text format serves 124 series;
kubectl delete: the pod stopped cleanly in 8 s, with nothing in the kernel log.The first run of this test failed on the
hostand the progress deadline above. Both are fixed and documented here.The first-start download path, kapp itself and the Prometheus Operator objects (
alerts.yaml; the same rules runon our cluster, validated against its history) were not part of this run.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.