installation_guide.md 8.49 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
# Installation Guide for 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
Platform is installed using Dynamo Kubernetes Platform [helm chart](/deploy/cloud/helm/platform/README.md).
25

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

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

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

35
36
37
38
39
40
41
42
43
44
45
46
47
48
All helm install commands could be overridden by either setting the values.yaml file or by passing in your own values.yaml:

```bash
helm install ...
  -f your-values.yaml
```

and/or setting values as flags to the helm install command, as follows:

```bash
helm install ...
  --set "your-value=your-value"
```

49
## Prerequisites
50

51
52
53
54
55
56
57
```bash
# Required tools
kubectl version --client  # v1.24+
helm version             # v3.0+
docker version           # Running daemon

# Set your inference runtime image
58
59
export RELEASE_VERSION=0.x.x # any version of Dynamo 0.3.2+ listed at https://github.com/ai-dynamo/dynamo/releases
export DYNAMO_IMAGE=nvcr.io/nvidia/ai-dynamo/vllm-runtime:${RELEASE_VERSION}
60
61
# Also available: sglang-runtime, tensorrtllm-runtime
```
62
63

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

66
## Path A: Production Install
67

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

```bash
71
# 1. Set environment
72
export NAMESPACE=dynamo-system
73
export RELEASE_VERSION=0.x.x # any version of Dynamo 0.3.2+ listed at https://github.com/ai-dynamo/dynamo/releases
74
75
76
77
78
79
80

# 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
helm fetch https://helm.ngc.nvidia.com/nvidia/ai-dynamo/charts/dynamo-platform-${RELEASE_VERSION}.tgz
81
helm install dynamo-platform dynamo-platform-${RELEASE_VERSION}.tgz --namespace ${NAMESPACE} --create-namespace
82
83
```

84
> [!TIP]
85
86
87
> For multinode deployments, you need to enable Grove and Kai Scheduler.
> You might chose to install them manually or through the dynamo-platform helm install command.
> When using the dynamo-platform helm install command, Grove and Kai Scheduler are NOT installed by default. You can enable their installation by setting the following flags in the helm install command:
88
89
90
91
92
93

```bash
--set "grove.enabled=true"
--set "kai-scheduler.enabled=true"
```

94
95
96
97
98
99
100
101
> [!TIP]
> By default, Model Express Server is not used.
> If you wish to use an existing Model Express Server, you can set the modelExpressURL to the existing server's URL in the helm install command:

```bash
--set "dynamo-operator.modelExpressURL=http://model-express-server.model-express.svc.cluster.local:8080"
```

102
103
104
105
106
107
108
109
110
> [!TIP]
> By default, Dynamo Operator is installed cluster-wide and will monitor all namespaces.
> If you wish to restrict the operator to monitor only a specific namespace (the helm release namespace by default), you can set the namespaceRestriction.enabled to true.
> You can also change the restricted namespace by setting the targetNamespace property.

```bash
--set "dynamo-operator.namespaceRestriction.enabled=true"
--set "dynamo-operator.namespaceRestriction.targetNamespace=dynamo-namespace" # optional
```
111

112
[Verify Installation](#verify-installation)
113

114
## Path C: Custom Development
115

116
Build and deploy from source for customization.
117

118
119
```bash
# 1. Set environment
120
export NAMESPACE=dynamo-system
121
122
123
export DOCKER_SERVER=nvcr.io/nvidia/ai-dynamo/  # or your registry
export DOCKER_USERNAME='$oauthtoken'
export DOCKER_PASSWORD=<YOUR_NGC_CLI_API_KEY>
124
export IMAGE_TAG=${RELEASE_VERSION}
125
126
127

# 2. Build operator
cd deploy/cloud/operator
Julien Mancuso's avatar
Julien Mancuso committed
128
129
130
131
132
133
134
135
136

# 2.1 Alternative 1 : Build and push the operator image for multiple platforms
docker buildx create --name multiplatform --driver docker-container --bootstrap
docker buildx use multiplatform
docker buildx build --platform linux/amd64,linux/arm64 -t $DOCKER_SERVER/dynamo-operator:$IMAGE_TAG --push .

# 2.2 Alternative 2 : Build and push the operator image for a single platform
docker build -t $DOCKER_SERVER/dynamo-operator:$IMAGE_TAG . && docker push $DOCKER_SERVER/dynamo-operator:$IMAGE_TAG

137
138
cd -

139
# 3. Create namespace and secrets to be able to pull the operator image (only needed if you pushed the operator image to a private registry)
140
141
142
143
144
145
146
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}

147
148
cd deploy/cloud/helm

149
150
# 4. Install CRDs
helm upgrade --install dynamo-crds ./crds/ --namespace default
151

152
# 5. Install Platform
153
helm dep build ./platform/
154
155
156
157

# To install cluster-wide instead, set NS_RESTRICT_FLAGS="" (empty) or omit that line entirely.

NS_RESTRICT_FLAGS="--set dynamo-operator.namespaceRestriction.enabled=true"
158
helm install dynamo-platform ./platform/ \
159
  --namespace "${NAMESPACE}" \
160
161
  --set "dynamo-operator.controllerManager.manager.image.repository=${DOCKER_SERVER}/dynamo-operator" \
  --set "dynamo-operator.controllerManager.manager.image.tag=${IMAGE_TAG}" \
162
163
164
  --set "dynamo-operator.imagePullSecrets[0].name=docker-imagepullsecret" \
  ${NS_RESTRICT_FLAGS}

165
```
166
167

[Verify Installation](#verify-installation)
168

169
## Verify Installation
170
171

```bash
172
173
# Check CRDs
kubectl get crd | grep dynamo
174

175
176
# Check operator and platform pods
kubectl get pods -n ${NAMESPACE}
177
# Expected: dynamo-operator-* and etcd-* and nats-* pods Running
178
```
179

180
## Next Steps
181

182
183
184
185
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}
186

187
188
189
190
   # Port forward and test
   kubectl port-forward svc/agg-vllm-frontend 8000:8000 -n ${NAMESPACE}
   curl http://localhost:8000/v1/models
   ```
191

192
2. **Explore Backend Guides**
193
194
195
   - [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)
196

197
3. **Optional:**
198
   - [Set up Prometheus & Grafana](metrics.md)
199
   - [SLA Planner Quickstart Guide](sla_planner_quickstart.md) (for SLA-aware scheduling and autoscaling)
200

201
## Troubleshooting
202

203
204
205
206
207
**Pods not starting?**
```bash
kubectl describe pod <pod-name> -n ${NAMESPACE}
kubectl logs <pod-name> -n ${NAMESPACE}
```
208

209
210
211
212
213
214
**HuggingFace model access?**
```bash
kubectl create secret generic hf-token-secret \
  --from-literal=HF_TOKEN=${HF_TOKEN} \
  -n ${NAMESPACE}
```
215

216
217
218
219
220
221
222
223
224
225
226
227
**Bitnami etcd "unrecognized" image?**

```bash
ERROR: Original containers have been substituted for unrecognized ones. Deploying this chart with non-standard containers is likely to cause degraded security and performance, broken chart features, and missing environment variables.
```
This error that you might encounter during helm install is due to bitnami changing their docker repository to a [secure one](https://github.com/bitnami/charts/tree/main/bitnami/etcd#%EF%B8%8F-important-notice-upcoming-changes-to-the-bitnami-catalog).

just add the following to the helm install command:
```bash
--set "etcd.image.repository=bitnamilegacy/etcd" --set "etcd.global.security.allowInsecureImages=true"
```

228
229
230
231
**Clean uninstall?**
```bash
./uninstall.sh  # Removes all CRDs and platform
```
232

233
## Advanced Options
234

235
- [Helm Chart Configuration](/deploy/cloud/helm/platform/README.md)
236
237
- [GKE-specific setup](gke_setup.md)
- [Create custom deployments](create_deployment.md)
238
- [Dynamo Operator details](dynamo_operator.md)
239
- [Model Express Server details](https://github.com/ai-dynamo/modelexpress)