Skip to content
Inference Academy

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

16 min · verified 2026-11Pro
Share

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

  1. 1
    Terraformnetwork, cluster, GPU node pools, storage, IAM
  2. 2
    Helm chartthe inference service: Deployment, Service, autoscaling, config
  3. 3
    Git repovalues per environment: model version, replicas, resources
  4. 4
    Argo 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

  1. Terraform: the GPU node pool
  2. Helm: the inference service
  3. Argo CD: Git as the source of truth
  4. Promoting a model version
  5. Secrets
  6. Review checklist for an inference change
  7. 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?