dynamo_cloud.md 5.33 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!--
SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

18
# Dynamo Kubernetes Platform
19

20
Deploy and manage Dynamo inference graphs on Kubernetes with automated orchestration and scaling, using the Dynamo Kubernetes Platform.
21

22
## Quick Start Paths
23

24
25
**Path A: Production Install**
Install from published artifacts on your existing cluster → [Jump to Path A](#path-a-production-install)
26

27
28
**Path B: Local Development**
Set up Minikube first → [Minikube Setup](minikube.md) → Then follow Path A
29

30
31
**Path C: Custom Development**
Build from source for customization → [Jump to Path C](#path-c-custom-development)
32

33
## Prerequisites
34

35
36
37
38
39
40
41
```bash
# Required tools
kubectl version --client  # v1.24+
helm version             # v3.0+
docker version           # Running daemon

# Set your inference runtime image
42
export DYNAMO_IMAGE=nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.4.1
43
44
# Also available: sglang-runtime, tensorrtllm-runtime
```
45
46

> [!TIP]
47
> No cluster? See [Minikube Setup](minikube.md) for local development.
48

49
## Path A: Production Install
50

51
Install from [NGC published artifacts](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/ai-dynamo/collections/ai-dynamo/artifacts) in 3 steps.
52
53

```bash
54
55
# 1. Set environment
export NAMESPACE=dynamo-kubernetes
56
export RELEASE_VERSION=0.4.1 # any version of Dynamo 0.3.2+
57
58
59
60
61
62
63
64
65

# 2. Install CRDs
helm fetch https://helm.ngc.nvidia.com/nvidia/ai-dynamo/charts/dynamo-crds-${RELEASE_VERSION}.tgz
helm install dynamo-crds dynamo-crds-${RELEASE_VERSION}.tgz --namespace default

# 3. Install Platform
kubectl create namespace ${NAMESPACE}
helm fetch https://helm.ngc.nvidia.com/nvidia/ai-dynamo/charts/dynamo-platform-${RELEASE_VERSION}.tgz
helm install dynamo-platform dynamo-platform-${RELEASE_VERSION}.tgz --namespace ${NAMESPACE}
66
67
```

68
[Verify Installation](#verify-installation)
69

70
## Path C: Custom Development
71

72
Build and deploy from source for customization.
73

74
75
76
77
78
79
80
81
### Quick Deploy Script

```bash
# 1. Set environment
export NAMESPACE=dynamo-cloud
export DOCKER_SERVER=nvcr.io/nvidia/ai-dynamo/  # or your registry
export DOCKER_USERNAME='$oauthtoken'
export DOCKER_PASSWORD=<YOUR_NGC_CLI_API_KEY>
82
export IMAGE_TAG=0.4.1
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

# 2. Build operator
cd deploy/cloud/operator
earthly --push +docker --DOCKER_SERVER=$DOCKER_SERVER --IMAGE_TAG=$IMAGE_TAG
cd -

# 3. Create namespace and secrets
kubectl create namespace ${NAMESPACE}
kubectl create secret docker-registry docker-imagepullsecret \
  --docker-server=${DOCKER_SERVER} \
  --docker-username=${DOCKER_USERNAME} \
  --docker-password=${DOCKER_PASSWORD} \
  --namespace=${NAMESPACE}

# 4. Deploy
helm repo add bitnami https://charts.bitnami.com/bitnami
./deploy.sh --crds
```
101

102
### Manual Steps (Alternative)
103

104
105
<details>
<summary>Click to expand manual installation steps</summary>
106

107
**Step 1: Install CRDs**
108
```bash
109
110
helm install dynamo-crds ./crds/ --namespace default
```
111

112
113
114
115
116
117
118
119
**Step 2: Install Platform**
```bash
helm dep build ./platform/
helm install dynamo-platform ./platform/ \
  --namespace ${NAMESPACE} \
  --set "dynamo-operator.controllerManager.manager.image.repository=${DOCKER_SERVER}/dynamo-operator" \
  --set "dynamo-operator.controllerManager.manager.image.tag=${IMAGE_TAG}" \
  --set "dynamo-operator.imagePullSecrets[0].name=docker-imagepullsecret"
120
```
121
122
123
</details>

[Verify Installation](#verify-installation)
124

125
## Verify Installation
126
127

```bash
128
129
# Check CRDs
kubectl get crd | grep dynamo
130

131
132
133
# Check operator and platform pods
kubectl get pods -n ${NAMESPACE}
# Expected: dynamo-operator-* and etcd-* pods Running
134
```
135

136
## Next Steps
137

138
139
140
141
1. **Deploy Model/Workflow**
   ```bash
   # Example: Deploy a vLLM workflow with Qwen3-0.6B using aggregated serving
   kubectl apply -f components/backends/vllm/deploy/agg.yaml -n ${NAMESPACE}
142

143
144
145
146
   # Port forward and test
   kubectl port-forward svc/agg-vllm-frontend 8000:8000 -n ${NAMESPACE}
   curl http://localhost:8000/v1/models
   ```
147

148
149
150
151
2. **Explore Backend Guides**
   - [vLLM Deployments](../../../components/backends/vllm/deploy/README.md)
   - [SGLang Deployments](../../../components/backends/sglang/deploy/README.md)
   - [TensorRT-LLM Deployments](../../../components/backends/trtllm/deploy/README.md)
152

153
154
155
3. **Optional:**
   - [Set up Prometheus & Grafana](k8s_metrics.md)
   - [SLA Planner Deployment Guide](sla_planner_deployment.md) (for advanced SLA-aware scheduling and autoscaling)
156

157
## Troubleshooting
158

159
160
161
162
163
**Pods not starting?**
```bash
kubectl describe pod <pod-name> -n ${NAMESPACE}
kubectl logs <pod-name> -n ${NAMESPACE}
```
164

165
166
167
168
169
170
**HuggingFace model access?**
```bash
kubectl create secret generic hf-token-secret \
  --from-literal=HF_TOKEN=${HF_TOKEN} \
  -n ${NAMESPACE}
```
171

172
173
174
175
**Clean uninstall?**
```bash
./uninstall.sh  # Removes all CRDs and platform
```
176

177
## Advanced Options
178

179
180
- [GKE-specific setup](gke_setup.md)
- [Create custom deployments](create_deployment.md)
181
- [Dynamo Operator details](dynamo_operator.md)