Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"DavidAnson.vscode-markdownlint",
"rust-lang.rust-analyzer",
"firefox-devtools.vscode-firefox-debug",
"ms-windows-ai-studio.windows-ai-studio",
"kilocode.Kilo-Code",
"saoudrizwan.claude-dev"
],
Expand Down
228 changes: 0 additions & 228 deletions docs/squid-failover-and-observability.md

This file was deleted.

15 changes: 6 additions & 9 deletions k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Kustomize + Helm-based configurations for deploying infrastructure management (`

| Stack | Components | Namespaces | Default Ports |
| :--- | :--- | :--- | :--- |
| **`infra`** *(Default)* | ArgoCD (backed by Valkey), Prometheus Stack (Prometheus + Grafana), NVIDIA DCGM Exporter, OpenTelemetry Collector | `argocd`, `monitoring`, `otel` | `8080` (ArgoCD), `8030` (Grafana), `8090` (Prometheus) |
| **`infra`** *(Default)* | ArgoCD (backed by Valkey), Grafana K8s Monitoring Stack (Alloy + exporters), NVIDIA DCGM Exporter, OpenTelemetry Collector | `argocd`, `monitoring`, `otel` | `8080` (ArgoCD), `8030` (Grafana), `8090` (Prometheus) |
| **`llm`** | Ollama, Open-WebUI, Qdrant Vector DB, Valkey Cache, Valkey Run Index | `llm` | `11434` (Ollama), `3000` (WebUI), `6333` (Qdrant), `6379` (Valkey) |
| **`all`** | All components from both stacks | `argocd`, `monitoring`, `otel`, `llm` | All ports above |

Expand All @@ -18,7 +18,7 @@ Kustomize + Helm-based configurations for deploying infrastructure management (`
## Quick Start

```bash
# Deploy default infrastructure stack (ArgoCD, Prometheus, Grafana, OTEL)
# Deploy default infrastructure stack (ArgoCD, K8s Monitoring, OTEL)
devops k8s deploy-stack

# Deploy local LLM stack (Ollama, Open-WebUI, Qdrant, Valkey)
Expand All @@ -39,11 +39,8 @@ minikube service argocd-server -n argocd --url
kubectl -n argocd get secret argocd-initial-admin-secret \
-o jsonpath="{.data.password}" | base64 -d; echo

# Grafana UI
minikube service kube-prometheus-grafana -n monitoring --url

# Prometheus UI
minikube service kube-prometheus-kube-prome-prometheus -n monitoring --url
# Monitoring Stack (Alloy Metrics & Scrapes)
minikube service k8s-monitoring-alloy-metrics -n monitoring --url
```

### LLM Stack (`llm`)
Expand Down Expand Up @@ -124,7 +121,7 @@ Inference engines are placed by GPU architecture, using node labels from NVIDIA
| `vllm-single` Deployment | 1 Ampere-or-newer GPU with 16 GiB+ | Qwen2.5-Coder-14B-Instruct-AWQ, FP8 KV cache, 16K context | `qwen2.5-coder-14b-instruct` | `devops-coder` |
| `ollama` StatefulSet, one pod per node | GPUs older than Ampere | Pulled on demand | Ollama model tags | `devops-chat`, `devops-embedding`, `ollama/*` |

Both vLLM Deployments keep weights on a PersistentVolumeClaim (`vllm-model-cache`, `vllm-single-model-cache`), download through the Squid proxy (trusting its CA, with Hugging Face Xet transfers disabled because they fail through SSL bumping), and are reachable only inside the cluster, through the gateway. A vLLM pod stays `Pending` until a node carries matching GPU labels. The first start downloads the weights, which can take hours on a home connection; the startup probe allows 3 hours before restarting the pod. The gateway lists each Ollama pod (`ollama-<n>.ollama-nodes`) as its own deployment, so it balances load and cools down failures per node. Through the `ollama` Service, LiteLLM's long-lived connections would pin every request to one pod. The Ollama-backed aliases therefore expect `qwen2.5-coder:7b`, `bge-m3` and `gpt-oss:20b` on every Ollama node (`ollama pull qwen2.5-coder:7b`). Set `replicas` in `llm/ollama.yaml` to the number of GPU nodes Ollama may use, and keep one gateway entry per replica in `llm/gateway/configmap.yaml`. A replica with no node to run on stays `Pending`, and requests sent to it fail over to the other nodes.
Inference workloads pull models directly and are reachable inside the cluster through the gateway. The gateway lists each Ollama pod (`ollama-<n>.ollama-nodes`) as its own deployment, balancing load and cooling down failures per node.

## Port Forwarding & Automated Configuration

Expand Down Expand Up @@ -249,7 +246,7 @@ k8s/
│ ├── kustomization.yaml # Kustomize overlay for monitoring
│ ├── namespace.yaml # monitoring namespace
│ ├── dcgm-exporter-values.yaml # Helm values for nvidia/dcgm-exporter (GPU metrics)
│ └── prometheus-values.yaml # Helm values for kube-prometheus-stack, with the vLLM and gateway monitors
│ └── k8s-monitoring-values.yaml # Helm values for grafana/k8s-monitoring (Alloy, kube-state-metrics, node-exporter, and gateway monitors)
├── otel/
│ ├── kustomization.yaml # Kustomize overlay for OpenTelemetry
│ ├── namespace.yaml # otel namespace
Expand Down
Loading
Loading