You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(k8s): review pod restarts, eliminate cgroup oom kills, and optimize workload resource limits #135
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/bugType bug: the code does not do what it must
Pods across nodes have experienced terminations and restarts (e.g. Ollama daemonset 8 restarts on workhorse and 1 on condor, node exporter restarts). Ollama currently has a hard memory limit of 24Gi in k8s/llm/ollama-daemonset.yaml. On workhorse (31Gi total RAM), memory spikes during model loading and caching trigger containerd/Linux OOM kills (exit code 255), while on condor (64Gi RAM) it artificially restricts memory. Furthermore, Ollama's liveness probe timeout (5s with 3 failure threshold) causes premature pod restarts during heavy inference or model loading. Additional core workloads (ArgoCD, Valkey, Jaeger, Registry) have overly restrictive memory limits.
Proposed Architectural Solution
Ollama DaemonSet Resource Optimization: Remove hard pod memory limit (leaving requests at 3000m CPU and 8Gi RAM), allowing Ollama to burst dynamically into available node RAM without cgroup OOM kills.
Ollama Probe Hardening: Add a generous startupProbe (failureThreshold 60, period 5s) and relax livenessProbe (timeout 10s, period 15s, failureThreshold 6) so inference spikes and model loading do not trigger kubelet container restarts.
Workload Limit Tuning:
ArgoCD (controller 2Gi, repo-server 2Gi, server 1Gi, redis 1Gi)
Valkey: Raise limit to 2Gi
Jaeger: Raise limit to 2Gi
Registry: Raise limit to 2Gi
Squid / Exporter: Raise limits to 16Gi / 256Mi
Live Cluster Application: Apply updated manifests directly to the cluster to stabilize running workloads.
Acceptance Criteria
Pod restart history and root causes identified (node reboot due to sda mount failure + memory limits / probe timeouts).
Memory limits removed from Ollama DaemonSet; probes hardened with startupProbe.
Memory limits raised across ArgoCD, Valkey, Jaeger, Registry, and Squid.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/bugType bug: the code does not do what it must
Activity
fix(k8s): review pod restarts, eliminate cgroup oom kills, and optimi…
dan-petty commentedon Sep 11, 2026
Resolved by squash-merge of PR #136 into
release/v0.2.16.feat(release): v0.2.16 (#161)