diff --git a/charts/kuberay/Chart.yaml b/charts/kuberay/Chart.yaml index f7e44ce9..a0240589 100644 --- a/charts/kuberay/Chart.yaml +++ b/charts/kuberay/Chart.yaml @@ -11,7 +11,7 @@ description: > enabling single-node and multi-node configurations without touching YAML. type: application version: 0.1.0 -appVersion: "2.40.0" +appVersion: "2.60.1" keywords: - ray - distributed diff --git a/charts/kuberay/values.yaml b/charts/kuberay/values.yaml index 3cfce07f..7fbf1320 100644 --- a/charts/kuberay/values.yaml +++ b/charts/kuberay/values.yaml @@ -19,7 +19,7 @@ cluster: # Ray container image — version must match the ray[default] package installed # in any client that connects. - rayImage: rayproject/ray:2.40.0-py312 + rayImage: rayproject/ray:2.60.1-py312 # --------------------------------------------------------------------------- # Head node — acts as coordinator / scheduler only. diff --git a/charts/openshell/values.yaml b/charts/openshell/values.yaml index 9a0ade09..a9c48214 100644 --- a/charts/openshell/values.yaml +++ b/charts/openshell/values.yaml @@ -1,7 +1,7 @@ # Copyright (C) 2025-2026 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # -# EAT overlay for the upstream OpenShell Helm chart (oci://ghcr.io/nvidia/openshell/helm-chart). +# EAT overlay for the upstream OpenShell Helm chart (oci://quay.io/ai-openshell/charts/openshell; images from quay.io/ai-openshell). # Namespace, image tag, proxy, auth and node placement are set by the openshell role. global: diff --git a/charts/pgvector/values.yaml b/charts/pgvector/values.yaml index 42a987ec..db2de194 100644 --- a/charts/pgvector/values.yaml +++ b/charts/pgvector/values.yaml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 image: repository: pgvector/pgvector - tag: pg16 + tag: 0.8.7-pg16 # pgvector 0.8.7 on PostgreSQL 16; same image as the floating pg16 tag on 2026-12-01 pullPolicy: IfNotPresent auth: diff --git a/config.yaml b/config.yaml index 85b28eab..6608ffe6 100644 --- a/config.yaml +++ b/config.yaml @@ -52,7 +52,7 @@ pgvector_storage_size: "20Gi" # --- Agent Sandbox --- agent_sandbox_namespace: "agent-sandbox-system" # fixed: the upstream manifests and sandbox templates use this namespace -agent_sandbox_version: "v1.0.10" +agent_sandbox_version: "v1.0.12" # --- OpenShell --- openshell_enabled: false @@ -65,7 +65,7 @@ litellm_allow_pod_network: "{{ openshell_enabled | bool }}" # --- KubeRay (optional — disabled by default) --- kuberay_enabled: false kuberay_namespace: "ray-system" -kuberay_operator_version: "1.3.0" +kuberay_operator_version: "1.8.0" # --- Istio mesh --- # Namespaces LiteLLM admits; add your own ambient-labelled agent namespace here. diff --git a/docker/README.md b/docker/README.md index b4076dac..ff6c1eaa 100644 --- a/docker/README.md +++ b/docker/README.md @@ -66,21 +66,21 @@ serving_engine=vllm # default | | `vllm` | `openvino` | |---|---|---| -| Image | `vllm/vllm-openai-cpu:v0.24.0` | `openvino/model_server:2025.4.1` (+ `-py` for runtime conversion) | +| Image | `vllm/vllm-openai-cpu:v0.28.0` | `openvino/model_server:2026.4.1` (serves OpenVINO IR models only) | | Model config library | `docker/model-configs.yaml` | `docker/ovms-model-configs.yaml` | | Generated compose file | `docker/docker-compose.vllm.yml` | `docker/docker-compose.ovms.yml` | | Containers | `agentic-vllm-` | `agentic-ovms-` | | Model API path | `/v1` | `/v3` | | Health endpoint | `/health` | `/v2/health/ready` | -| Speech-to-text (`openai/whisper-small`) | supported | **not supported** (no such task in OVMS 2025.4) | +| Speech-to-text (`openai/whisper-small`) | supported | **not supported** (this Compose setup serves speech models with vLLM only) | Switching the engine and redeploying is safe: the generator deletes the other engine's compose file and `deploy.sh` force-removes its leftover model containers so the model ports are freed. Model caches live in named volumes and are **not** deleted, so switching back does not re-download anything. #### OpenVINO specifics -* **Pre-converted models start fast.** Model IDs under the `OpenVINO/` organization (e.g. `OpenVINO/Qwen3-8B-int4-ov`) are already in OpenVINO IR format — OVMS downloads and serves them directly, in minutes and on a fraction of the memory. Check that the repo actually exists before using it: the org mirrors permissively-licensed models only, so there are **no `OpenVINO/Llama-3.x-*-ov` repos**. For gated families like Llama, use the upstream `meta-llama/...` ID and let OVMS convert it. -* **Everything else is converted on first start.** Any other HuggingFace checkpoint is exported and quantized with `optimum-cli` inside the container. That can take **30+ minutes** and temporarily needs roughly the memory of the original fp16 checkpoint, which is why memory limits in `ovms-model-configs.yaml` stay high even for `int4` output. Converted weights are cached in the per-model Docker volume, so later starts only load the model. The container healthcheck allows a 30-minute grace period for this. -* **Tool calling** covers the `llama3`, `hermes3`, and `phi4` templates in OVMS 2025.4. Models without a matching parser still serve chat completions, just without automatic `tool_calls` extraction. (The `tool_call_parser` setting in `config.cfg` applies to vLLM only.) +* **Pre-converted models start fast.** Model IDs under the `OpenVINO/` organization (e.g. `OpenVINO/Qwen3-8B-int4-ov`) are already in OpenVINO IR format — OVMS downloads and serves them directly, in minutes and on a fraction of the memory. Check that the repo actually exists before using it: the org mirrors permissively-licensed models only, so there are **no `OpenVINO/Llama-3.x-*-ov` repos**. For families without an IR repo, like Llama, use `serving_engine=vllm`. +* **No conversion.** As in the Inference Toolkit, one OVMS image (`2026.4.1`) is used, without the `-py` (optimum-cli) image, so it serves OpenVINO IR models only. The models in `ovms-model-configs.yaml` point `source_model` at their `OpenVINO/*` repo. +* **Tool calling** in this setup uses the `llama3`, `hermes3`, and `phi4` OVMS tool parsers (`tool_parser` in `ovms-model-configs.yaml`). Models without a matching parser still serve chat completions, just without automatic `tool_calls` extraction. (The `tool_call_parser` setting in `config.cfg` applies to vLLM only.) ```bash # Fastest OpenVINO path: pre-converted IR weights, no runtime conversion @@ -128,17 +128,11 @@ With `serving_engine=openvino`, tuned configurations live in `docker/ovms-model- | `OpenVINO/Qwen2.5-1.5B-Instruct-int4-ov` | text_generation | Pre-converted IR — fast start | | `OpenVINO/Qwen3-1.7B-int4-ov` | text_generation | Pre-converted IR — fast start | | `OpenVINO/Qwen3-8B-int4-ov` | text_generation | Pre-converted IR — fastest start at 8B | -| `meta-llama/Llama-3.2-1B-Instruct` | text_generation | int4, `llama3` tool parser | | `Qwen/Qwen2.5-Coder-14B-Instruct` | text_generation | int4, `hermes3` tool parser | | `Qwen/Qwen3-Coder-30B-A3B-Instruct` | text_generation | int4, `hermes3` tool parser | | `Qwen/Qwen3-30B-A3B-Instruct-2507` | text_generation | int4, `hermes3` tool parser | -| `meta-llama/Llama-3.1-8B-Instruct` | text_generation | int4, `llama3` tool parser | -| `meta-llama/Llama-3.2-3B-Instruct` | text_generation | int4, `llama3` tool parser | | `google/gemma-4-26B-A4B-it` | text_generation | int4 | -| `deepseek-ai/DeepSeek-R1-Distill-Qwen-32B` | text_generation | int4 | -| `deepseek-ai/DeepSeek-R1-Distill-Llama-8B` | text_generation | int4 | -| `Qwen/Qwen3-1.7B`, `Qwen/Qwen3-4B-Instruct-2507` | text_generation | int4 | -| `nvidia/Llama-3.1-Nemotron-Nano-4B-v1.1` | text_generation | int4, `llama3` tool parser | +| `Qwen/Qwen3-1.7B`, `Qwen/Qwen2.5-Coder-7B-Instruct` | text_generation | int4 | | `BAAI/bge-base-en-v1.5` | embeddings | int8 | | `BAAI/bge-reranker-base` | rerank | int8 | @@ -164,7 +158,7 @@ The `-Specdec` suffixed entries (e.g. `Qwen/Qwen2.5-Coder-14B-Instruct-Specdec`) | Port binding error | Check running containers: `docker ps`, ensure no duplicate model entries in `config.cfg` | | OpenVINO model stuck "starting" for a long time | Expected on first start — the checkpoint is being converted to IR. Watch progress: `docker logs -f agentic-ovms-`. Use an `OpenVINO/*` model ID to skip conversion. | | OpenVINO model OOM-killed during first start | Conversion needs ~fp16-checkpoint memory. Raise `resources.memory` in `ovms-model-configs.yaml`, deploy fewer models at once, or use a pre-converted `OpenVINO/*` model. | -| `openai/whisper-small` never becomes healthy | Speech-to-text is not an OVMS 2025.4 task — set `serving_engine=vllm` for speech models. | +| `openai/whisper-small` never becomes healthy | Speech models are served with vLLM only in this Compose setup — set `serving_engine=vllm` for speech models. | ### Custom Model Configuration diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 22c8a068..82f3e3e7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -47,7 +47,7 @@ services: # Exposed on port 5432 for pgAdmin / external RAG tooling # =========================================================================== postgres: - image: pgvector/pgvector:pg16 + image: pgvector/pgvector:0.8.7-pg16 container_name: agentic-postgres restart: unless-stopped cap_drop: @@ -116,7 +116,8 @@ services: # LiteLLM — GenAI Gateway (OpenAI-compatible proxy) # =========================================================================== litellm: - image: docker.litellm.ai/berriai/litellm:v1.83.14-stable.patch.2 + # Same image and version as Intel Inference Toolkit (non-root, uid 65534) + image: ghcr.io/berriai/litellm-non_root:v1.105.7 container_name: agentic-litellm restart: unless-stopped cap_drop: @@ -159,51 +160,57 @@ services: # Observability — Langfuse + ClickHouse + MinIO (profile: observability) # =========================================================================== clickhouse: - image: bitnamilegacy/clickhouse:25.2.1 + # Official image, latest LTS (same line as Langfuse's own compose); runs as the clickhouse user + image: clickhouse/clickhouse-server:26.3.76.2 container_name: agentic-clickhouse restart: unless-stopped profiles: [observability] + user: "101:101" cap_drop: - ALL environment: - CLICKHOUSE_ADMIN_USER: default - CLICKHOUSE_ADMIN_PASSWORD: ${CLICKHOUSE_PASSWORD:-clickhouse} + CLICKHOUSE_DB: default + CLICKHOUSE_USER: default + CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-clickhouse} + CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1" volumes: - - clickhouse-data:/bitnami/clickhouse + - clickhouse-data:/var/lib/clickhouse networks: - agentic-net healthcheck: - test: ["CMD-SHELL", "clickhouse-client --user default --password \"$$CLICKHOUSE_ADMIN_PASSWORD\" --query 'SELECT 1'"] + test: ["CMD-SHELL", "clickhouse-client --user default --password \"$$CLICKHOUSE_PASSWORD\" --query 'SELECT 1'"] interval: 15s timeout: 5s retries: 10 start_period: 120s minio: - image: bitnamilegacy/minio:2024.12.18 + # Chainguard build of MinIO (same image Langfuse's own compose uses); MinIO no longer + # publishes release images. Free tier has only :latest, so pin the digest. + image: cgr.dev/chainguard/minio@sha256:fdbc0d5b977a24ad86a8525f49c6bec64fe869742f92b9009957e67f80729ae4 container_name: agentic-minio restart: unless-stopped profiles: [observability] cap_drop: - ALL + command: ["server", "/data", "--address", ":9000", "--console-address", ":9001"] environment: MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minio} MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} - MINIO_CONSOLE_PORT_NUMBER: "9001" volumes: - - minio-data:/bitnami/minio/data + - minio-data:/data ports: - "9001:9001" # MinIO console networks: - agentic-net healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/health/live || exit 1"] + test: ["CMD", "mc", "ready", "local"] interval: 30s timeout: 10s retries: 3 langfuse-web: - image: langfuse/langfuse:3.106.1 + image: langfuse/langfuse:4.90.0 container_name: agentic-langfuse-web restart: unless-stopped profiles: [observability] @@ -263,7 +270,7 @@ services: - agentic-net langfuse-worker: - image: langfuse/langfuse-worker:3.106.1 + image: langfuse/langfuse-worker:4.90.0 container_name: agentic-langfuse-worker restart: unless-stopped profiles: [observability] diff --git a/docker/ovms-model-configs.yaml b/docker/ovms-model-configs.yaml index dadce89f..5683af80 100644 --- a/docker/ovms-model-configs.yaml +++ b/docker/ovms-model-configs.yaml @@ -68,6 +68,7 @@ models: "google/gemma-4-26B-A4B-it": + source_model: "OpenVINO/gemma-4-26b-a4b-it-int4-ov" served_name: "google-gemma-4-26b-a4b-it" task: text_generation weight_format: int4 @@ -78,68 +79,8 @@ models: - "256" resources: memory: "128g" - "meta-llama/Llama-3.1-8B-Instruct": - served_name: "llama-3-1-8b-instruct" - task: text_generation - weight_format: int4 - tool_parser: llama3 - extra_args: - - "--cache_size" - - "12" - - "--max_num_seqs" - - "256" - resources: - memory: "64g" - "meta-llama/Llama-3.1-8B-Instruct-Specdec": - served_name: "llama-3-1-8b-instruct-specdec" - source_model: "meta-llama/Llama-3.1-8B-Instruct" - task: text_generation - weight_format: int4 - tool_parser: llama3 - extra_args: - - "--cache_size" - - "12" - - "--max_num_seqs" - - "256" - speculative_decoding: - draft_model: "meta-llama/Llama-3.2-1B-Instruct" - resources: - memory: "80g" - "meta-llama/Llama-3.2-3B-Instruct": - served_name: "llama-3-2-3b-instruct" - task: text_generation - weight_format: int4 - tool_parser: llama3 - extra_args: - - "--cache_size" - - "8" - - "--max_num_seqs" - - "256" - resources: - memory: "32g" - "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B": - served_name: "deepseek-r1-distill-qwen-32b" - task: text_generation - weight_format: int4 - extra_args: - - "--cache_size" - - "20" - - "--max_num_seqs" - - "256" - resources: - memory: "128g" - "deepseek-ai/DeepSeek-R1-Distill-Llama-8B": - served_name: "deepseek-r1-distill-llama-8b" - task: text_generation - weight_format: int4 - extra_args: - - "--cache_size" - - "12" - - "--max_num_seqs" - - "256" - resources: - memory: "64g" "Qwen/Qwen3-1.7B": + source_model: "OpenVINO/Qwen3-1.7B-int4-ov" served_name: "qwen3-1-7b" task: text_generation weight_format: int4 @@ -153,19 +94,8 @@ models: - "qwen3" resources: memory: "32g" - "Qwen/Qwen3-4B-Instruct-2507": - served_name: "qwen3-4b-instruct-2507" - task: text_generation - weight_format: int4 - tool_parser: hermes3 - extra_args: - - "--cache_size" - - "8" - - "--max_num_seqs" - - "256" - resources: - memory: "32g" "Qwen/Qwen2.5-Coder-7B-Instruct": + source_model: "OpenVINO/Qwen2.5-Coder-7B-Instruct-int4-ov" served_name: "qwen2-5-coder-7b-instruct" task: text_generation weight_format: int4 @@ -178,6 +108,7 @@ models: resources: memory: "64g" "Qwen/Qwen2.5-Coder-14B-Instruct": + source_model: "OpenVINO/Qwen2.5-Coder-14B-Instruct-int4-ov" served_name: "qwen2-5-coder-14b-instruct" task: text_generation weight_format: int4 @@ -190,8 +121,8 @@ models: resources: memory: "96g" "Qwen/Qwen2.5-Coder-14B-Instruct-Specdec": + source_model: "OpenVINO/Qwen2.5-Coder-14B-Instruct-int4-ov" served_name: "qwen2-5-coder-14b-instruct-specdec" - source_model: "Qwen/Qwen2.5-Coder-14B-Instruct" task: text_generation weight_format: int4 tool_parser: hermes3 @@ -201,10 +132,11 @@ models: - "--max_num_seqs" - "256" speculative_decoding: - draft_model: "Qwen/Qwen2.5-Coder-0.5B-Instruct" + draft_model: "OpenVINO/Qwen2.5-Coder-0.5B-Instruct-int4-ov" resources: memory: "112g" "Qwen/Qwen3-Coder-30B-A3B-Instruct": + source_model: "OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov" served_name: "qwen3-coder-30b-a3b-instruct" task: text_generation weight_format: int4 @@ -217,8 +149,8 @@ models: resources: memory: "128g" "Qwen/Qwen3-Coder-30B-A3B-Instruct-Specdec": + source_model: "OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov" served_name: "qwen3-coder-30b-a3b-instruct-specdec" - source_model: "Qwen/Qwen3-Coder-30B-A3B-Instruct" task: text_generation weight_format: int4 tool_parser: hermes3 @@ -228,10 +160,11 @@ models: - "--max_num_seqs" - "256" speculative_decoding: - draft_model: "Qwen/Qwen3-0.6B" + draft_model: "OpenVINO/Qwen3-0.6B-int4-ov" resources: memory: "128g" "Qwen/Qwen3-30B-A3B-Instruct-2507": + source_model: "OpenVINO/Qwen3-30B-A3B-Instruct-2507-int4-ov" served_name: "qwen3-30b-a3b-instruct-2507" task: text_generation weight_format: int4 @@ -243,36 +176,11 @@ models: - "256" resources: memory: "128g" - "nvidia/Llama-3.1-Nemotron-Nano-4B-v1.1": - served_name: "llama-3-1-nemotron-nano-4b-v1-1" - task: text_generation - weight_format: int4 - tool_parser: llama3 - extra_args: - - "--cache_size" - - "8" - - "--max_num_seqs" - - "256" - resources: - memory: "32g" - "meta-llama/Llama-3.2-1B-Instruct": - served_name: "llama-3-2-1b-instruct" - task: text_generation - weight_format: int4 - tool_parser: llama3 - extra_args: - - "--cache_size" - - "8" - - "--max_num_seqs" - - "256" - resources: - memory: "24g" # --------------------------------------------------------------------------- # Pre-converted IR models from the OpenVINO organization: no optimum-cli # export, so they start in minutes on a fraction of the memory a converted # model needs. The small ones are the quickest way to smoke-test the stack. - # Note: the OpenVINO org publishes no Llama-3.2 IR repos — for those, point - # models= at the meta-llama ID above and let OVMS convert it. + # Note: the OpenVINO org publishes no Llama IR repos — use serving_engine=vllm for those. # --------------------------------------------------------------------------- "OpenVINO/TinyLlama-1.1B-Chat-v1.0-int4-ov": served_name: "openvino-tinyllama-1-1b-chat-int4-ov" @@ -322,6 +230,7 @@ models: resources: memory: "24g" "BAAI/bge-base-en-v1.5": + source_model: "OpenVINO/bge-base-en-v1.5-int8-ov" served_name: "bge-base-en-v1-5" task: embeddings weight_format: int8 @@ -332,6 +241,7 @@ models: resources: memory: "16g" "BAAI/bge-reranker-base": + source_model: "OpenVINO/bge-reranker-base-int8-ov" served_name: "bge-reranker-base" task: rerank weight_format: int8 diff --git a/docker/scripts/generate-docker-compose.sh b/docker/scripts/generate-docker-compose.sh index cfd454f1..1ee22b4c 100755 --- a/docker/scripts/generate-docker-compose.sh +++ b/docker/scripts/generate-docker-compose.sh @@ -29,11 +29,9 @@ OUTPUT_FILE="" VLLM_IMAGE="vllm/vllm-openai-cpu:v0.28.0" -# OVMS ships two image variants at every release: the plain image serves models -# already in OpenVINO IR format, while -py additionally bundles optimum-cli so it -# can convert and quantize any other HuggingFace checkpoint at pull time. -OVMS_IMAGE="openvino/model_server:2025.4.1" -OVMS_IMAGE_PY="openvino/model_server:2025.4.1-py" +# One OVMS image, the same as Intel Inference Toolkit. It serves models already in +# OpenVINO IR format; the -py (optimum-cli) image is not used. +OVMS_IMAGE="openvino/model_server:2026.4.1" # OVMS runs as this uid; Docker creates named volumes root-owned, so the model # repository has to be handed over before the serving containers can pull into it. OVMS_UID=5000 @@ -444,19 +442,14 @@ get_ovms_source_model() { echo "$src" } -# Models under the OpenVINO org are already in IR format, so the plain image can -# serve them as-is. Everything else is converted with optimum-cli, which only -# ships in the -py image. +# Models under the OpenVINO org are already in IR format, which is all the OVMS +# image serves (no -py / optimum-cli image, as in Intel Inference Toolkit). is_openvino_ir_model() { [[ "$1" == OpenVINO/* ]] } get_ovms_image() { - if is_openvino_ir_model "$1"; then - echo "$OVMS_IMAGE" - else - echo "$OVMS_IMAGE_PY" - fi + echo "$OVMS_IMAGE" } # Get environment variables for an OVMS model as Docker Compose YAML. @@ -818,6 +811,23 @@ main() { exit 1 fi done + # OVMS serves OpenVINO IR models only: stop before generating anything when a + # model (or its speculative-decoding draft) would need conversion. + if [[ "$SERVING_ENGINE" == "openvino" ]]; then + local _src _draft + for model_id in "${MODEL_ARRAY[@]}"; do + _src=$(get_ovms_source_model "$model_id") + _draft=$(yq eval ".models[\"${model_id}\"].speculative_decoding.draft_model" "$MODEL_CONFIGS" 2>/dev/null) + for _m in "$_src" "${_draft#null}"; do + [[ -z "$_m" ]] && continue + if ! is_openvino_ir_model "$_m"; then + log_error "OVMS serves OpenVINO IR models only: '$_m' (for $model_id) is not an OpenVINO/* repo." + log_error "Set source_model to an OpenVINO/* repo in docker/ovms-model-configs.yaml, or use serving_engine=vllm." + exit 1 + fi + done + done + fi log_success "All model IDs valid" echo diff --git a/docs/reference/agent-sandbox.md b/docs/reference/agent-sandbox.md index 96911802..7c823c18 100644 --- a/docs/reference/agent-sandbox.md +++ b/docs/reference/agent-sandbox.md @@ -34,11 +34,11 @@ python-runtime-sandbox: uvicorn on :8888 | Component | Kind | Namespace | Image or detail | |---|---|---|---| -| `agent-sandbox-controller` | Deployment | `agent-sandbox-system` | `registry.k8s.io/agent-sandbox/agent-sandbox-controller:v1.0.10` | +| `agent-sandbox-controller` | Deployment | `agent-sandbox-system` | `registry.k8s.io/agent-sandbox/agent-sandbox-controller:v1.0.12` | | CRDs | Cluster-scoped | | `sandboxes`, `sandboxtemplates`, `sandboxclaims`, `sandboxwarmpools` (v1beta1) | -| `sandbox-router` | Deployment | `agent-sandbox-system` | `registry.k8s.io/agent-sandbox/sandbox-router-go:v1.0.10` (TokenReview auth) | +| `sandbox-router` | Deployment | `agent-sandbox-system` | `registry.k8s.io/agent-sandbox/sandbox-router-go:v1.0.12` (TokenReview auth) | | `sandbox-router-svc` | Service | `agent-sandbox-system` | ClusterIP :8080 | -| `python-sandbox-template` | SandboxTemplate | `agent-sandbox-system` | `registry.k8s.io/agent-sandbox/python-runtime-sandbox:v1.0.10` | +| `python-sandbox-template` | SandboxTemplate | `agent-sandbox-system` | `registry.k8s.io/agent-sandbox/python-runtime-sandbox:v1.0.12` | | `python-pool` | SandboxWarmPool | `agent-sandbox-system` | 5 pre-warmed pods from `python-sandbox-template` | ## 1. Configure @@ -49,7 +49,7 @@ After `./toolkit_manager.sh init agent-toolkit`, set these in `env/local/config. |---|---|---| | `agent_sandbox_enabled` | `true` | Set `false` to skip the sandbox. | | `agent_sandbox_namespace` | `agent-sandbox-system` | Namespace for every sandbox component. | -| `agent_sandbox_version` | `v1.0.10` | Upstream release. Selects the manifests fetched from GitHub and the runtime image tag. | +| `agent_sandbox_version` | `v1.0.12` | Upstream release. Selects the manifests fetched from GitHub and the runtime image tag. | | `agent_sandbox_router_image` | `registry.k8s.io/agent-sandbox/sandbox-router-go:` | Router image. Override to mirror it for air-gapped clusters. | | `agent_sandbox_python_runtime_image` | `registry.k8s.io/agent-sandbox/python-runtime-sandbox:` | Image for the default template. Override to mirror it. | | `agent_sandbox_python_warm_pool_name` | `python-pool` | Name of the default warm pool. | @@ -67,7 +67,7 @@ Every data-plane call through the router (command execution after `create_sandbo export ROUTER_TOKEN=$(kubectl create token default -n agent-sandbox-system --duration=1h) ``` -Pass it on every SDK client that talks to the router with `extra_headers` (Direct mode). Tunnel mode in SDK 1.0.10 has no `extra_headers` field, so from a workstation use a port-forward plus Direct mode: +Pass it on every SDK client that talks to the router with `extra_headers` (Direct mode). Tunnel mode in SDK 1.0.12 has no `extra_headers` field, so from a workstation use a port-forward plus Direct mode: ```bash kubectl port-forward -n agent-sandbox-system svc/sandbox-router-svc 8080:8080 @@ -126,13 +126,13 @@ curl -s http://localhost:8080/healthz ## 4. Run code from the SDK -Install the SDK version that matches the deployment. This release pins agent-sandbox **v1.0.10**, so use the matching SDK: +Install the SDK version that matches the deployment. This release pins agent-sandbox **v1.0.12**, so use the matching SDK: ```bash -pip install k8s-agent-sandbox==1.0.10 +pip install k8s-agent-sandbox==1.0.12 ``` -SDK documentation: [agentic-sandbox-client](https://github.com/kubernetes-sigs/agent-sandbox/tree/v1.0.10/clients/python/agentic-sandbox-client). Mint a [Router token](#router-token) first; every example below needs it on `extra_headers`. +SDK documentation: [agentic-sandbox-client](https://github.com/kubernetes-sigs/agent-sandbox/tree/v1.0.12/clients/python/agentic-sandbox-client). Mint a [Router token](#router-token) first; every example below needs it on `extra_headers`. | Where the client runs | Connection | |---|---| @@ -424,9 +424,9 @@ To move to a new `agent_sandbox_version`, set the pin in `config.agent-toolkit.y ## Upgrading -The version is pinned by `agent_sandbox_version` (default `v1.0.10`). Re-running `install` re-applies the manifests for that pin. +The version is pinned by `agent_sandbox_version` (default `v1.0.12`). Re-running `install` re-applies the manifests for that pin. -From an older pin (for example v0.5.0) to **v1.0.10**: +From an older pin (for example v0.5.0) to **v1.0.12**: 1. Back up existing resources: @@ -434,8 +434,8 @@ From an older pin (for example v0.5.0) to **v1.0.10**: kubectl get sandboxes,sandboxclaims,sandboxtemplates,sandboxwarmpools -A -o yaml > backup.yaml ``` -2. Set `agent_sandbox_version: "v1.0.10"` in `env/local/config.agent-toolkit.yaml` (or leave the default) and run `./toolkit_manager.sh install agent-toolkit`. -3. Upgrade the SDK: `pip install --upgrade k8s-agent-sandbox==1.0.10`. +2. Set `agent_sandbox_version: "v1.0.12"` in `env/local/config.agent-toolkit.yaml` (or leave the default) and run `./toolkit_manager.sh install agent-toolkit`. +3. Upgrade the SDK: `pip install --upgrade k8s-agent-sandbox==1.0.12`. 4. Drop any client that relied on a static `ROUTER_AUTH_TOKEN`. The router now requires a Kubernetes service-account Bearer token (TokenReview). 5. Keep custom resources on `apiVersion: extensions.agents.x-k8s.io/v1beta1`. @@ -448,7 +448,7 @@ For later versions, raise the pin, re-run `install`, and upgrade the SDK to matc | Pods not starting | `kubectl get pods -n agent-sandbox-system`, then `kubectl describe pod -n agent-sandbox-system ` | | Controller errors | `kubectl logs -n agent-sandbox-system -l app.kubernetes.io/name=agent-sandbox` | | Router errors | `kubectl logs -n agent-sandbox-system -l app=sandbox-router` | -| Image pull errors | Test registry access: `kubectl run test --rm -it --restart=Never --image=registry.k8s.io/agent-sandbox/python-runtime-sandbox:v1.0.10 -- echo "success"`. For air-gapped clusters, mirror the images and set `agent_sandbox_router_image` and `agent_sandbox_python_runtime_image`. | +| Image pull errors | Test registry access: `kubectl run test --rm -it --restart=Never --image=registry.k8s.io/agent-sandbox/python-runtime-sandbox:v1.0.12 -- echo "success"`. For air-gapped clusters, mirror the images and set `agent_sandbox_router_image` and `agent_sandbox_python_runtime_image`. | | SDK cannot connect | `kubectl get svc -n agent-sandbox-system sandbox-router-svc`, the `/healthz` check in [Verify](#3-verify), and `kubectl get networkpolicy -n agent-sandbox-system`. Router data-plane calls need a service-account Bearer token (TokenReview). | ## Next steps @@ -456,4 +456,4 @@ For later versions, raise the pin, re-run `install`, and upgrade the SDK to matc - [Backend connection reference](backend-connections.md#agent-sandbox): in-cluster URL - [Configuration](../configuration/configuration.md) and [Troubleshooting](../faq-and-troubleshooting/troubleshooting.md) - [Meet the Agent Toolkit](../overview/meet.md#toolkit-components) -- Upstream: [agent-sandbox docs](https://agent-sandbox.sigs.k8s.io/docs/), [v1.0.10 release notes](https://github.com/kubernetes-sigs/agent-sandbox/releases/tag/v1.0.10), [SDK README](https://github.com/kubernetes-sigs/agent-sandbox/tree/v1.0.10/clients/python/agentic-sandbox-client), [PyPI: k8s-agent-sandbox](https://pypi.org/project/k8s-agent-sandbox/1.0.10/) +- Upstream: [agent-sandbox docs](https://agent-sandbox.sigs.k8s.io/docs/), [v1.0.12 release notes](https://github.com/kubernetes-sigs/agent-sandbox/releases/tag/v1.0.12), [SDK README](https://github.com/kubernetes-sigs/agent-sandbox/tree/v1.0.12/clients/python/agentic-sandbox-client), [PyPI: k8s-agent-sandbox](https://pypi.org/project/k8s-agent-sandbox/1.0.12/) diff --git a/docs/reference/backend-connections.md b/docs/reference/backend-connections.md index c6457704..79f70cd7 100644 --- a/docs/reference/backend-connections.md +++ b/docs/reference/backend-connections.md @@ -70,7 +70,7 @@ Isolated pods for agent-generated code. Full guide: [Agent sandbox](agent-sandbo |---|---| | **Namespace** | `agent-sandbox-system` | | **Router** | `sandbox-router-svc.agent-sandbox-system.svc.cluster.local:8080` | -| **Version** | `v1.0.10` | +| **Version** | `v1.0.12` | | **CRDs** | `sandboxes`, `sandboxtemplates`, `sandboxwarmpools` (`v1beta1`) | | **SDK** | `pip install k8s-agent-sandbox` | | **Default template** | `python-sandbox-template` | @@ -128,7 +128,7 @@ Off unless `openshell_enabled: true`. That also needs `agent_sandbox_enabled: tr | **Gateway service** | `openshell.openshell-system.svc.cluster.local:8080` (gRPC, mTLS) | | **Sandbox namespace** | `openshell-sandboxes` | | **Client mTLS bundle** | Secret `openshell-client-tls` in `openshell-system` | -| **CLI** | [OpenShell v0.1.6](https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.6) | +| **CLI** | [OpenShell v0.1.10](https://github.com/ai-openshell/openshell/releases/tag/v0.1.10) | | **Provider** | `genai-gateway` (`openshell sandbox create --provider genai-gateway`) | ```bash diff --git a/docs/reference/kuberay.md b/docs/reference/kuberay.md index ca9eb686..d8be6db2 100644 --- a/docs/reference/kuberay.md +++ b/docs/reference/kuberay.md @@ -48,9 +48,9 @@ All keys are flat and live in `env/local/config.agent-toolkit.yaml`. The default |---|---|---| | `kuberay_enabled` | `false` | Install KubeRay on the next `install`. | | `kuberay_namespace` | `ray-system` | Namespace for the operator and the Ray cluster. The addresses on this page assume the default. | -| `kuberay_operator_version` | `1.3.0` | Version of the upstream `kuberay-operator` chart. | +| `kuberay_operator_version` | `1.8.0` | Version of the upstream `kuberay-operator` chart. | | `kuberay_release_name` | `ray-cluster` | Helm release and RayCluster name. The head Service is `-head-svc`. | -| `kuberay_ray_image` | `rayproject/ray:2.40.0-py312` | Image for head and workers. Clients must use the same Ray version and Python minor version. | +| `kuberay_ray_image` | `rayproject/ray:2.60.1-py312` | Image for head and workers. Clients must use the same Ray version and Python minor version. | | `kuberay_worker_replicas` | `2` | Initial worker count. | | `kuberay_worker_min_replicas` | `1` | Autoscaler floor. | | `kuberay_worker_max_replicas` | `4` | Autoscaler ceiling. | @@ -67,7 +67,7 @@ Example with the defaults written out: ```yaml # env/local/config.agent-toolkit.yaml kuberay_enabled: true -kuberay_ray_image: rayproject/ray:2.40.0-py312 +kuberay_ray_image: rayproject/ray:2.60.1-py312 kuberay_worker_replicas: 2 kuberay_worker_min_replicas: 1 kuberay_worker_max_replicas: 4 @@ -92,7 +92,7 @@ Worker sizing profiles: Limitations of the current role: -- **`rayVersion`:** the RayCluster's `rayVersion` comes from the chart's `appVersion` (`2.40.0`). Changing `kuberay_ray_image` does not change it. +- **`rayVersion`:** the RayCluster's `rayVersion` comes from the chart's `appVersion` (`2.60.1`). Changing `kuberay_ray_image` does not change it. - **Re-runs:** `install` runs `helm upgrade --install` for the operator and the RayCluster. A **failed** prior release is removed first, then reinstalled. To force a clean chart apply after a bad state, [remove KubeRay](#6-remove-kuberay) and install again. ## 1. Enable KubeRay @@ -154,10 +154,10 @@ From outside the cluster, open `https://ray./` (user `ray`, pa ## 3. Connect a Python client -Install the Ray version that matches the cluster image (`2.40.0` by default), on the same Python minor version (`py312` means Python 3.12). A mismatch causes connection errors. +Install the Ray version that matches the cluster image (`2.60.1` by default), on the same Python minor version (`py312` means Python 3.12). A mismatch causes connection errors. ```bash -pip install "ray[default]==2.40.0" +pip install "ray[default]==2.60.1" ``` From a pod in the cluster: diff --git a/docs/reference/openshell.md b/docs/reference/openshell.md index cefbec07..7c172be3 100644 --- a/docs/reference/openshell.md +++ b/docs/reference/openshell.md @@ -2,7 +2,7 @@ [← Docs index](../README.md) -[NVIDIA OpenShell](https://github.com/NVIDIA/OpenShell) adds a policy layer on top of the [agent sandbox](agent-sandbox.md). Its gateway creates sandboxes as `agents.x-k8s.io` Sandbox custom resources. A supervisor inside every sandbox enforces: +[OpenShell](https://github.com/ai-openshell/openshell) adds a policy layer on top of the [agent sandbox](agent-sandbox.md). Its gateway creates sandboxes as `agents.x-k8s.io` Sandbox custom resources. A supervisor inside every sandbox enforces: - Egress default-deny, with per-host and per-binary allow rules, and HTTP method and path policy - Filesystem restrictions (Landlock, where the node kernel provides it) and seccomp @@ -16,9 +16,9 @@ OpenShell is off by default (`openshell_enabled: false`). It needs `agent_sandbo | Component | Version | |---|---| -| OpenShell Helm chart and images | `0.1.6` (`oci://ghcr.io/nvidia/openshell/helm-chart`) | -| OpenShell CLI | `v0.1.6` GitHub release | -| Agent sandbox | `v1.0.10` (`agent_sandbox_enabled: true`) | +| OpenShell Helm chart and images | `0.1.10` (`oci://quay.io/ai-openshell/charts/openshell`, images `quay.io/ai-openshell/*`) | +| OpenShell CLI | `v0.1.10` GitHub release (`ai-openshell/openshell`) | +| Agent sandbox | `v1.0.12` (`agent_sandbox_enabled: true`) | | Model proxy | LiteLLM when `auth_type: litellm_vkey`. The provider step is skipped when LiteLLM is absent | | User authentication | Single-admin mode. The gateway is ClusterIP. Kubernetes RBAC gates access | | CNI | A CNI that enforces `NetworkPolicy` (Calico does) | @@ -66,7 +66,7 @@ LiteLLM (:4000) hosts allowed by the sandbox | Component | Used for | Changed | |---|---|---| | Kubernetes cluster | Gateway and sandbox pods | No | -| Agent sandbox controller `v1.0.10` | Turns OpenShell `Sandbox` resources into pods | No | +| Agent sandbox controller `v1.0.12` | Turns OpenShell `Sandbox` resources into pods | No | | LiteLLM (`auth_type: litellm_vkey`) | The only path from a sandbox to models | One additional virtual key | | Model backends behind LiteLLM | Reached through LiteLLM only | No | | Toolkit Manager (`config.agent-toolkit.yaml`, `./toolkit_manager.sh`) | Installs and re-runs OpenShell | New `openshell_enabled` switch | @@ -136,9 +136,9 @@ Resume mode, which would skip OpenShell when the release is already `deployed` a ### Version pins ```yaml -openshell_chart_version: "0.1.6" -openshell_image_tag: "0.1.6" -openshell_release_tag: "v0.1.6" +openshell_chart_version: "0.1.10" +openshell_image_tag: "0.1.10" +openshell_release_tag: "v0.1.10" ``` ### Settings @@ -207,7 +207,7 @@ kubectl get networkpolicy -n openshell-sandboxes ### Connect the CLI -Install the CLI from the [v0.1.6 release](https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.6), then: +Install the CLI from the [v0.1.10 release](https://github.com/ai-openshell/openshell/releases/tag/v0.1.10), then: ```bash kubectl port-forward -n openshell-system svc/openshell 8080:8080 & @@ -252,7 +252,7 @@ openshell logs demo --source sandbox | grep DENIED openshell sandbox delete demo ``` -Without `--from`, sandboxes use the OpenShell community base image. Pass `--from ` for your own agent image, and `--policy ` to allow additional endpoints. The policy schema is in the [OpenShell policy reference](https://github.com/NVIDIA/OpenShell/blob/v0.1.6/docs/reference/policy-schema.mdx). +Without `--from`, sandboxes use the OpenShell community base image. Pass `--from ` for your own agent image, and `--policy ` to allow additional endpoints. The policy schema is in the [OpenShell policy reference](https://github.com/ai-openshell/openshell/blob/v0.1.10/docs/how-it-works/policies/schema.mdx). ## Run OpenCode in a sandbox @@ -469,7 +469,7 @@ The toolkit applies `eat-openshell-sandbox-pods` under the OpenShell egress poli ## Legacy 0.0.116 limitations -These notes apply to deployments still running OpenShell 0.0.116. The toolkit default is 0.1.6. +These notes apply to deployments still running OpenShell 0.0.116. The toolkit default is 0.1.10. - A credential placeholder copied into a request body fails the request. If an agent pastes `env` output into its model context, the supervisor rejects the request with `credential_injection_failed`. Redact `openshell:resolve:env:*` from tool output before sending it to the model. - Sandbox pod logs show warnings only. Policy decisions are written to a file inside the pod. Read them with `openshell logs `. Fluent Bit does not collect them. @@ -502,7 +502,7 @@ print(urllib.request.urlopen(req).read().decode())' # 4. On the admin host, gateway remove keeps the client certificate files openshell gateway remove eat -rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/openshell/gateways/eat" ~/.cache/eat/openshell-cli-v0.1.6 +rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/openshell/gateways/eat" ~/.cache/eat/openshell-cli-v0.1.10 ``` ## Troubleshooting @@ -537,4 +537,4 @@ openshell logs --source sandbox - [Agent sandbox](agent-sandbox.md): the controller OpenShell uses, including [Kata](agent-sandbox.md#kata-containers) - [Backend connection reference](backend-connections.md#openshell): gateway address and the port-forward - [Configuration](../configuration/configuration.md): `openshell_enabled` -- [NVIDIA OpenShell](https://github.com/NVIDIA/OpenShell) and the [v0.1.6 release](https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.6) +- [OpenShell](https://github.com/ai-openshell/openshell) and the [v0.1.10 release](https://github.com/ai-openshell/openshell/releases/tag/v0.1.10) diff --git a/roles/agent_sandbox/defaults/main.yaml b/roles/agent_sandbox/defaults/main.yaml index c5fcea79..c44b865f 100644 --- a/roles/agent_sandbox/defaults/main.yaml +++ b/roles/agent_sandbox/defaults/main.yaml @@ -18,7 +18,7 @@ # ============================================================================= agent_sandbox_namespace: "agent-sandbox-system" -agent_sandbox_version: "v1.0.10" +agent_sandbox_version: "v1.0.12" agent_sandbox_release_name: "agent-sandbox" # Published images — no local builds needed. The controller image is baked diff --git a/roles/kuberay/defaults/main.yaml b/roles/kuberay/defaults/main.yaml index edb37347..a0105d57 100644 --- a/roles/kuberay/defaults/main.yaml +++ b/roles/kuberay/defaults/main.yaml @@ -13,9 +13,9 @@ kuberay_namespace: "ray-system" kuberay_release_name: "ray-cluster" -kuberay_operator_version: "1.3.0" +kuberay_operator_version: "1.8.0" kuberay_operator_release_name: "kuberay-operator" -kuberay_ray_image: "rayproject/ray:2.40.0-py312" +kuberay_ray_image: "rayproject/ray:2.60.1-py312" # Cluster sizing kuberay_worker_replicas: 2 diff --git a/roles/openshell/defaults/main.yaml b/roles/openshell/defaults/main.yaml index acd32e16..ad95c80e 100644 --- a/roles/openshell/defaults/main.yaml +++ b/roles/openshell/defaults/main.yaml @@ -4,7 +4,7 @@ # ============================================================================= # OpenShell Role Defaults # ============================================================================= -# NVIDIA OpenShell (https://github.com/NVIDIA/OpenShell) on top of Agent +# OpenShell (https://github.com/ai-openshell/openshell) on top of Agent # Sandbox: a gateway that creates policy-enforced sandboxes as # agents.x-k8s.io Sandbox CRs (egress default-deny, L7 policy, Landlock, # seccomp, credential isolation) and a GenAI Gateway provider so sandboxes @@ -15,9 +15,9 @@ # ============================================================================= # --- Versions --- -openshell_chart_version: "0.1.6" # oci://ghcr.io/nvidia/openshell/helm-chart version -openshell_image_tag: "0.1.6" -openshell_release_tag: "v0.1.6" # GitHub release providing the openshell CLI +openshell_chart_version: "0.1.10" # oci://quay.io/ai-openshell/charts/openshell version +openshell_image_tag: "0.1.10" +openshell_release_tag: "v0.1.10" # GitHub release providing the openshell CLI # StorageClass for sandbox workspace PVCs; empty = `local-path` when the cluster has it, else the default openshell_workspace_storage_class: "" @@ -26,11 +26,11 @@ openshell_workspace_storage_class: "" openshell_namespace: "openshell-system" # gateway (holds provider credentials) openshell_sandbox_namespace: "openshell-sandboxes" # sandbox workload + supervisor pods openshell_release_name: "openshell" -openshell_chart_ref: "oci://ghcr.io/nvidia/openshell/helm-chart" +openshell_chart_ref: "oci://quay.io/ai-openshell/charts/openshell" # moved from oci://ghcr.io/nvidia/openshell/helm-chart in 0.1.10 helm_charts_base_openshell: "{{ role_path }}/../../charts/openshell" # CLI used from the control plane to register the GenAI Gateway provider -openshell_cli_url: "https://github.com/NVIDIA/OpenShell/releases/download/{{ openshell_release_tag }}/openshell-x86_64-unknown-linux-musl.tar.gz" +openshell_cli_url: "https://github.com/ai-openshell/openshell/releases/download/{{ openshell_release_tag }}/openshell-x86_64-unknown-linux-musl.tar.gz" # Empty = ~/.cache/eat/openshell-cli- of the deploying user (mode 0700): private, # and versioned so a release bump fetches a matching CLI. openshell_cli_dir: ""