"examples/llm/vscode:/vscode.git/clone" did not exist on "8585c3007747eb157b3ef6e0db9a779ccd0cf518"
README.md 1.69 KB
Newer Older
1
<!--
2
SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SPDX-License-Identifier: Apache-2.0
-->

# Dynamo Service Discovery

## Overview

By default, Dynamo discovers endpoints and model cards through etcd. An experimental Kubernetes backend is available for discovery that uses native Kubernetes EndpointSlices, eliminating the dependency on etcd.

**Using DynamoGraphDeployment (Recommended):**

When deploying with the Dynamo operator, simply add the annotation to your DGD manifest:

```yaml
metadata:
  annotations:
19
    nvidia.com/dynamo-discovery-backend: kubernetes
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
```

The operator will automatically configure the required EndpointSlices, labels, and pod environment variables. See [`dgd.yaml`](./dgd.yaml) for a complete example.

## Environment Variables

| **Variable** | **Description** | **Default** |
| ------------ | --------------- | ----------- |
| `DYN_DISCOVERY_BACKEND` | Discovery backend (`kv_store` for etcd or `kubernetes` for experimental EndpointSlice-based discovery) | `kv_store` |

## Metadata Endpoint

The Kubernetes backend exposes a `/metadata` endpoint on each pod that returns registered discovery information. This is used by the system status server to expose the discovery information to the clients on the discovery plane.

### Example Request

```bash
curl -s localhost:9090/metadata | jq
```

### Example Response

```json
{
  "endpoints": {
    "vllm-disagg/backend/generate": {
      "component": "backend",
      "endpoint": "generate",
      "instance_id": 12345678901234567890,
      "namespace": "vllm-disagg",
      "transport": {
        "nats_tcp": "vllm-disagg_backend.generate-abc123"
      }
    }
  },
  "model_cards": {}
}
```