Infrastructure as code for GPU inference: Terraform, Helm and Argo CD
How the layers fit: Terraform (or OpenTofu) for the cloud, cluster and GPU node pools; Helm charts for the inference service; Argo CD for continuous delivery from Git. Example code for each layer, how to promote a model version through environments, secrets, drift, and the review checklist for an inference change.
By Sandip Maity, Applied AI Engineer
The Kubernetes lessons show the manifests for an inference service. In production nobody applies those by hand. The cloud resources, the cluster, the GPU nodes and the services are all described in code, reviewed in pull requests and applied by pipelines. This lesson shows how the three common tools divide the work.
What we checked. The snippets below are illustrative and were not applied to a real cloud account for this lesson. Resource and field names follow each tool's documentation as of November 2026, but provider modules change often: start from your cloud provider's current Terraform module and your engine's current Helm chart.
#The layers
- 1Terraformnetwork, cluster, GPU node pools, storage, IAM
- 2Helm chartthe inference service: Deployment, Service, autoscaling, config
- 3Git repovalues per environment: model version, replicas, resources
- 4Argo CDapplies the repo to each cluster and reports drift
| Layer | Tool | Changes how often | Who reviews |
|---|---|---|---|
| Cloud and cluster | Terraform or OpenTofu | Weeks | Platform team |
| Service packaging | Helm chart | When the service changes | Service owners |
| Environment config (model version, replicas) | Values files in Git | Daily | Service owners, with evaluation results |
| Delivery | Argo CD (or Flux) | Continuously | Automatic, with sync policies |
Pro content
Keep reading with Inference Academy Pro
Unlock the rest of this lesson, plus every advanced lesson, hands-on lab, the larger playground models and completion certificates.
Still to come in this lesson
- Terraform: the GPU node pool
- Helm: the inference service
- Argo CD: Git as the source of truth
- Promoting a model version
- Secrets
- Review checklist for an inference change
- Exercises
You will be able to answer
- Which tool typically creates the GPU node pool?
- What does Argo CD do?
- How should a new model version reach production in this setup?
- Where should API keys and model registry tokens live?
- Why keep Terraform state in a remote backend with locking?