This section describes how to use FluxCD for GitOps-based deployment of Dynamo inference graphs. GitOps enables you to manage your Dynamo deployments declaratively using Git as the source of truth. We'll use the aggregated vLLM example to demonstrate the workflow.
- A Kubernetes cluster with Dynamo Kubernetes Platform installed
- FluxCD installed in your cluster
- A Git repository to store your deployment configurations
The GitOps workflow for Dynamo deployments consists of three main steps:
- Build and push the Dynamo Operator
- Create and commit a DynamoGraphDeployment custom resource for initial deployment
- Update the graph by building a new version and updating the CR for subsequent updates
First, follow to See Install Dynamo Kubernetes Platform.
Create a new file in your Git repository (e.g., deployments/llm-agg.yaml) with the following content:
apiVersion: nvidia.com/v1alpha1
kind: DynamoGraphDeployment
metadata:
name: llm-agg
spec:
pvcs:
- name: vllm-model-storage
size: 100Gi
services:
Frontend:
replicas: 1
envs:
- name: SPECIFIC_ENV_VAR
value: some_specific_value
Processor:
replicas: 1
envs:
- name: SPECIFIC_ENV_VAR
value: some_specific_value
VllmWorker:
replicas: 1
envs:
- name: SPECIFIC_ENV_VAR
value: some_specific_value
# Add PVC for model storage
volumeMounts:
- name: vllm-model-storage
mountPoint: /modelsCommit and push this file to your Git repository. FluxCD will detect the new CR and create the initial Dynamo deployment in your cluster.
To update your pipeline, just update the associated DynamoGraphDeployment CRD
The Dynamo operator will automatically reconcile it.
You can monitor the deployment status using:
export NAMESPACE=<namespace-with-the-dynamo-operator>
# Check the DynamoGraphDeployment status
kubectl get dynamographdeployment llm-agg -n $NAMESPACE