Deployment
This page covers deploying the NVIDIA Cluster Readiness Engine (NVCRE) controller in production: install paths, resource sizing, high availability, RBAC, network policies, health probes, and the cleanup steps that are easy to miss.
Installation methods
NVCRE supports two install paths. Both pull the same artifacts from the GitHub Container Registry (GHCR).
nvcrectl setup init
Install the CLI first with the installer script (see Install for the full walkthrough):
Then set up the cluster:
setup init runs two phases:
- deps — Kubeflow Trainer (required for
TrainJobworkloads) - helm — the NVCRE Helm chart: CRDs, controller Deployment, RBAC, metrics Service/ServiceMonitor, and built-in LogProfiles. The CRDs are server-side-applied from the chart before the Helm release is installed or upgraded, on every run — Helm alone would only install them once and never update them.
By default the Helm chart is pulled from GHCR at the CLI’s own version, so a tagged release needs no version flag. Dev builds (built from main) require --version to name the chart version explicitly:
The image and chart are public on GHCR, so no token is needed. For a private fork on GHCR, --image-pull-secret <github-token> creates the nvcrectl-pull-secret image pull secret in the nvcre namespace and authenticates chart pulls from GHCR. For a chart hosted on a private non-GHCR mirror, run helm registry login <mirror> before setup init instead. Use --skip-phases=deps when Kubeflow Trainer is already installed, --skip-phases=helm to run only dependency setup, and --auto-approve to skip the confirmation prompt in CI. Unknown phase names are rejected. On clusters that cannot reach GHCR at all, --chart-ref and --trainer-chart-ref point both chart pulls at a mirror registry; see Restricted egress and air-gapped installs.
Before installing or upgrading Trainer, setup init checks the shared JobSet CRD and correlates the supported JobSet controller fingerprints with live resources and the exact Trainer release manifest. A verified external JobSet controller makes Trainer install with jobset.install=false; a bundled controller stays bundled. An orphaned JobSet CRD with no controller, supporting resources, release evidence, or JobSets keeps the CRD and installs the bundled controller without refreshing the CRD schema. An existing Trainer release with a missing JobSet CRD stops with repair guidance because Helm does not restore a chart CRD during upgrade. Ambiguous or unreadable ownership stops before Helm mutation and prints the manual Trainer installation followed by the nvcrectl setup init --skip-phases=deps path. The bounded fingerprint scan covers the published chart pattern, not arbitrary customized controllers; operators who cannot establish that assumption must manage the Trainer installation explicitly. Operator-managed Trainer and JobSet installations are responsible for compatible Trainer and JobSet CRD schemas, controllers, external consumers, and any required migrations. Automatic reconciliation of the shared JobSet CRD is deferred work that needs its own design, covering schema compatibility, stored-version migration, and coordination with external controllers and workloads.
Check the installation at any time:
Helm chart
For GitOps workflows, install the chart directly. The chart is public on GHCR, so no registry login is needed. Inspect and install (the snippet resolves the newest stable release without authentication; set NVCRE_VERSION to an explicit tag for reproducible installs):
The controller image is ghcr.io/nvidia/cluster-readiness-engine/manager, tagged with the same release version. Chart and image versions move together — name the same tag everywhere. The Helm path does not install Kubeflow Trainer; install it separately before running TrainJob workloads.
Key chart values:
Restricted egress and air-gapped installs
By default the install path reaches GHCR for three artifacts: the NVCRE Helm chart (oci://ghcr.io/nvidia/cluster-readiness-engine), the Kubeflow Trainer Helm chart (oci://ghcr.io/kubeflow/charts/kubeflow-trainer), and the controller image (ghcr.io/nvidia/cluster-readiness-engine/manager). On clusters that cannot reach GHCR, either point setup init at a mirror or bypass it entirely.
Mirror the artifacts. Copy both charts and the image set to a registry the cluster can reach: the controller image, the images referenced by the Kubeflow Trainer chart, and the workload images used by the certification categories you plan to run. The published Kubeflow Trainer chart package vendors its JobSet chart dependency inside the archive (charts/jobset/ in the .tgz), so mirroring the chart artifact is sufficient; repackaging the chart from source without its vendored dependencies would reintroduce a registry fetch at install time. Then override every reference on setup init:
--chart-ref is used both for the release install and for the CRD extraction (helm show crds), so the helm phase needs no GHCR access. When the chart ref points at a non-GHCR registry, setup init does not attempt a GHCR registry login at all, even with --image-pull-secret set, so the install cannot fail on unreachable GHCR. If only one of --chart-ref and --trainer-chart-ref points at a mirror while the other still resolves to ghcr.io (and the GHCR-bound pull is not skipped, e.g. via --skip-phases=deps), setup init prints a non-fatal warning naming the chart that would still be pulled from GHCR. The chart versions do not change: the mirror must host the NVCRE chart at the CLI version (or --version) and the Kubeflow Trainer chart at the pinned version (2.2.1 for this release). If the mirror requires authentication for the chart pulls, run helm registry login <mirror> before setup init; Helm then uses its stored credentials for the pulls. --image-pull-secret authenticates against ghcr.io only; it still creates the nvcrectl-pull-secret Kubernetes secret (scoped to ghcr.io) regardless of the chart location.
For a controller image mirrored off GHCR, omit --image-pull-secret: both its token and the secret it creates are scoped to ghcr.io, so they cannot authenticate pulls from the mirror. Authenticate the mirror pull one of two ways instead:
-
Node-level registry credentials. Configure the mirror credentials in the nodes’ container runtime (containerd registry configuration or a kubelet credential provider). Nothing is bound to the controller pod, so
setup initworks exactly as shown above. -
A pull secret bound through the chart. Create the secret in the
nvcrenamespace and bind it through the chart’smanager.imagePullSecretsvalue.setup inithas no flag to bind a custom-named pull secret today (the only secret it wires intomanager.imagePullSecretsis theghcr.io-scopednvcrectl-pull-secret), so this path means installing the chart directly with Helm, from the mirrored chart ref or from the in-repo chart described below:Installing the chart with Helm directly carries the same caveats as bypassing
setup initbelow: install Kubeflow Trainer yourself, and re-apply the CRDs on upgrades.
When no registry is reachable at all. The mirroring and credential paths above assume the cluster can reach some registry. A detached segment may have none, in which case preload the images into each node’s container runtime instead of pulling them:
-
Produce or export the image somewhere that has egress — a workstation, or a build Job inside a cluster that has network access.
-
Serve the exported tar from a pod on the nodes’ own network, or copy it to the nodes directly. A pod with
hostNetwork: truerunning an HTTP server over the tar is the least invasive option, because the nodes can reach a node IP without any registry or service in between. -
Import it on every node that may run the workload:
The pipeline streams the whole tar to each node, but containerd only stores layers it does not already have, so a derived image costs little extra disk on a node that already carries its base.
-
Reference the preloaded image by an explicitly tagged reference — never
:latest, because:latest(and an omitted tag) defaults toAlways, which sends the kubelet to a registry that this cluster cannot reach; any other tag defaults toIfNotPresentand stays on the local copy. Name it in whichever path owns the reference: the controller chart’smanager.image.repository/manager.image.tag(ormanager.image.digestfor a digest-pinned image), a Certification’sspec.imageorcategories[].options.image, or a WorkloadRun’sspec.image. These paths choose the image, not a pull policy: the chart leaves the manager container’simagePullPolicyunset, and Certification and WorkloadRun expose no workload pull-policy field. The API server defaults the omitted policy according to the tag as described above.
This is also the only path that works for an air-gapped workload image derived from a base image the nodes already have — for example the sshd-prebaked MPI image recommended in the FAQ.
Bypass setup init. Install the in-repo chart (helm/cluster-readiness-engine in the source tree) directly with helm install, setting manager.image.repository and manager.image.tag to your mirrored image (and manager.imagePullSecrets when the mirror needs credentials), and install Kubeflow Trainer manually. Nothing is pulled from a chart registry, but you take on installing the Kubeflow Trainer version this release supports and re-applying the CRDs on upgrades yourself.
Resource requirements
The controller runs as a single Deployment. The shipped defaults are:
Size it according to the number of nodes and concurrent workloads in the cluster:
High availability
Leader election is enabled by default (the manager runs with --leader-elect). To run the controller in HA mode, scale the Deployment to two or more replicas:
Only one replica holds the leader lease at a time. Standby replicas take over automatically if the leader fails, with a temporary reconciliation gap while leadership is acquired. Existing workloads continue independently if their nodes remain healthy.
Node maintenance and disruption protection
To retain a ready controller replica during voluntary evictions such as kubectl drain, enable the optional PodDisruptionBudget (PDB). nvcrectl setup init currently has no PDB configuration flags, so manage these values through a direct Helm install or upgrade, or through your GitOps values.
By default, the chart gives controller replicas a preferred pod anti-affinity rule for kubernetes.io/hostname. The scheduler spreads replicas across nodes when possible but may co-locate them when necessary. A non-empty manager.affinity replaces that complete default; it is not merged with the preferred rule.
Upgrade note: Earlier chart versions rendered no affinity when manager.affinity was empty. Upgrading from those versions with empty manager.affinity adds preferred hostname anti-affinity and triggers a controller Deployment rollout, even if pdb.enabled is false. With multiple replicas, the scheduler prefers placing them on different nodes, but still permits co-location and scheduling on a single-node cluster.
For a hard HA guarantee, include both infrastructure-node placement and required pod anti-affinity in the override. The example below assumes infrastructure nodes carry the node-role.kubernetes.io/infra label; replace that key with the label used by your cluster. Set app.kubernetes.io/instance to your Helm release name and app.kubernetes.io/name to the chart’s rendered name label (nvcre by default; adjust it if you change nameOverride). Both should match the controller Deployment’s selector:
The default preferred rule does not guarantee separation, so both replicas may still share a node. During a drain, one pod can be evicted, but the PDB then waits for the Deployment to schedule and ready a replacement elsewhere before allowing the other eviction. If no replacement can become Ready, the drain remains blocked. Co-location also leaves both replicas exposed to an involuntary failure of that node, which a PDB cannot prevent.
This placement requires at least two eligible infrastructure nodes. For rolling upgrades with two replicas, provide a third eligible node with capacity for a controller pod. The chart does not set a Deployment strategy, so the Kubernetes rolling-update defaults allow one surge pod and zero unavailable pods at this replica count. On exactly two nodes, the required anti-affinity also matches the old replicas, leaving the surge pod Pending and the rollout stalled. If only two nodes are available, retain preferred anti-affinity, or customize the Deployment’s spec.strategy.rollingUpdate.maxUnavailable to 1 through your deployment tooling. The chart does not expose this strategy setting as a Helm value; allowing one unavailable replica also temporarily reduces redundancy during upgrades.
The PDB can still allow eviction of the leader; it preserves a ready replica, not uninterrupted reconciliation or process memory. It does not protect against node failure, direct pod deletion, or Deployment rolling updates.
With one replica and minAvailable: 1, the PDB blocks node drains even when no Certification is running. Before maintenance, either scale to two and wait for a ready replica on another node, or arrange a maintenance window, temporarily disable the PDB (or set minAvailable: 0), and restore protection after the replacement is ready. Completing a Certification does not automatically relax the budget. The PDB is disabled by default to preserve existing maintenance behavior.
More generally, voluntary eviction of a healthy controller pod is blocked while the current ready replica count is at or below the required minimum. For example, two replicas with minAvailable: 2 or minAvailable: "100%" leave no room for voluntary eviction. Percentage minimums are calculated from the desired replica count and rounded up to a whole number of pods.
RBAC requirements
The controller’s ClusterRole (nvcre-manager-role) is scoped to the resource types NVCRE actually manages — there are no wildcard rules. Review these before deploying to locked-down clusters:
The Workflow dependency system creates supporting resources (ConfigMaps, PVCs, ComputeDomains, TrainingRuntimes, ResourceClaimTemplates) before workloads start, so the role includes create/delete on each dependency kind the catalog and platform overrides can render. Inspect the full ClusterRole:
Cluster scope and tenancy model
The controller operates as a cluster-scoped infrastructure service, the same model used by the GPU Operator, Node Problem Detector, and other Kubernetes-native controllers. Burn-in certification is an infrastructure concern that reads cluster-scoped Node objects to evaluate GPU health.
NVCRE never modifies nodes — it does not taint, cordon, or patch them. It records failed nodes with a reason (HardwareFailureDetected, ThresholdViolation, or WorkloadFailed) in the Certification status, and leaves quarantine and repair to your platform’s own tooling.
For teams that need per-team access control, the chart ships admin, editor, and viewer ClusterRoles for the Certification, Workflow, Job, and GoodputMeasurement CRDs. Bind these to team-specific groups or service accounts using standard Kubernetes RoleBindings scoped to each team’s namespace.
Network policies
The chart does not ship a NetworkPolicy. If your cluster enforces network policies, allow ingress to the metrics port (8443) from your monitoring namespace:
If you want to restrict egress to the Kubernetes API server or gate health probes separately, layer additional NetworkPolicies on top of this example.
Scaling characteristics
The controller uses controller-runtime’s work queue model — each reconciler processes events concurrently. A single replica comfortably handles clusters up to 1,000 nodes and hundreds of concurrent burn-in Jobs. Leader election ensures only one replica reconciles at a time, while standby replicas provide automatic failover.
The controller has no external database, no admission webhook, and no sidecar injection. It depends on Kubeflow Trainer for TrainJob workloads, and nvcrectl setup init installs Kubeflow Trainer by default unless you skip the deps phase. CRD validation is handled through CEL-based validation rules embedded in the CRD schema, which the API server evaluates natively. Operationally, that reduces the stack to the controller Deployment plus the Kubernetes APIs and Trainer CRDs it uses.
Tuning for large clusters (200+ nodes)
CEL evaluation is lightweight per node, pod-to-node lookups use field indexes, and node watches filter for health-relevant changes only (taints, conditions, schedulability), so unrelated node updates do not trigger reconciliation.
Air-gapped and disconnected environments
The controller runs without external network access at runtime. All catalog entries are embedded in the binary at compile time, and the controller makes no outbound API calls — it communicates only with the Kubernetes API server. For air-gapped deployment:
- Mirror the controller image (
ghcr.io/nvidia/cluster-readiness-engine/manager) and the Kubeflow Trainer images to your internal registry - Install the Helm chart with
manager.image.repositorypointing at your internal registry - Pre-load any workload images referenced by catalog entries (NeMo, NCCL tests)
No internet access, external telemetry endpoints, or license servers are required at runtime.
Training categories: Megatron-LM source
The training/nemotron5-8b and training/nemotron5-56b categories run a megatron-clone init container that resolves the entry’s source checkout at pod start, in this order: if the workspace already holds the source at /mnt/workspace/megatron-lm, it is used unchanged; otherwise, if the workload image ships the source at /opt/megatron-lm, it is copied into the workspace; otherwise the init container clones over the network. Both entries define Megatron-LM as their source, with https://github.com/NVIDIA/Megatron-LM.git (branch core_v0.15.2) as their entry-defined default upstream. The clone step is workload-pod egress, so image mirroring alone does not cover it unless the image itself carries the source. Three ways to run these categories without GitHub access, in order of preference:
-
Bake the source into the workload image.
/opt/megatron-lmis the documented in-image location the entries look for. Extend the training image with the pinned checkout:That exact line keeps the branch pin identical to the one the init container would clone and leaves
.gitpresent for anything that expects a git checkout. The init container copies the tree into the workspace on every fresh pod start, so the source travels with the image and is covered by the ordinary workload-image pre-loading described at the top of this section; no git egress happens at runtime. Then either point the categories at the extended image withcategories[].options.image, which also replaces themegatron-cloneinit container’s image, or serve it under the reference the entries render on your platform: pre-load it on the nodes or publish it through your registry mirror under that name. That reference isnvcr.io/nvidia/pytorch:25.08-py3everywhere except GCP H100, where the training image follows the TCPXO plugin version detected on the nodes (pytorch:25.06-py3for plugin v1.0.15 and v1.0.16, and when detection finds no release); see GCP H100 clusters.nvcrectl certification render --dry-runprints the reference it picked. -
Pre-seed the workspace PVC. Set
enableCheckpoint: true(plusstorageClassNameif the cluster has no default StorageClass). The category then mounts a PersistentVolumeClaim named<variant>-pvc(for examplenemotron5-8b-pvc) at/mnt/workspaceinstead of a memory-backedemptyDir. Pre-populate that volume with the Megatron-LM source atmegatron-lm/before creating the Certification: the init container uses the workspace unchanged whenever/mnt/workspace/megatron-lmexists (a plain source export works;.gitis not required). WithoutenableCheckpointthe workspace is anemptyDir, so this option does not apply and the source is resolved from the image or the network on every pod start. -
Point the clone at an internal Git mirror. For sites that run one, set
sourceRepoon the Certification, either globally inspecor per category undercategories[].options, to a Git mirror of the entry’s source. Each catalog entry defines what its source is and its default upstream; for these two entries the source is Megatron-LM. The branch pin is unchanged, so the mirror must serve thecore_v0.15.2branch. The URL must use an authenticated remote scheme (https://orssh://);http://andgit://URLs (unauthenticated transports the workload would execute code from), scp-stylegit@host:pathsyntax, andfile://URLs are rejected by CRD validation (non-TLS mirrors and local source belong in the image or on the pre-seeded PVC above). The clone only runs when neither the workspace nor the image provides the source.
The rest of the training path makes no other network calls: the training script builds the local checkout with pip install -e . --no-deps --no-build-isolation rather than installing from PyPI, and trains on mock data with a null tokenizer, so no dataset or tokenizer downloads occur.
Health checks
The controller exposes two probe endpoints on port 8081, and the chart configures both probes on the Deployment:
Shipped probe configuration:
Upgrades
- Review the release notes for breaking changes.
- Apply the new chart version’s CRDs. Helm never updates CRDs on
helm upgrade— it applies a chart’scrds/directory only on the first install — so skipping this step leaves the installed CRDs at the old schema: - Upgrade the Helm release:
- Verify the rollout:
To roll back:
If you installed with nvcrectl setup init, upgrade by installing the new CLI version and re-running nvcrectl setup init — it reconciles the CRDs from the chart on every run before upgrading the Helm release, so no manual CRD step is needed.
Uninstall and cleanup
nvcrectl setup reset
setup reset runs three phases: cr (deletes all NVCRE custom resource instances while the controller can still process finalizers), helm (removes the NVCRE Helm release and then explicitly deletes the NVCRE CRDs), and deps (removes Kubeflow Trainer and its Trainer-owned CRDs). Use --skip-phases=deps to keep Kubeflow Trainer, or --skip-phases=cr,helm to run only dependency removal. A Trainer Helm uninstall error stops reset before CRD cleanup and returns a nonzero result; rerun after resolving the Helm, API, timeout, or finalizer failure.
What setup reset retains — clean these up yourself if you want a pristine cluster:
- The
nvcreandkubeflow-systemnamespaces are not deleted. - The
nvcrectl-pull-secretimage pull secret created bysetup init --image-pull-secretremains in thenvcrenamespace. - The shared
jobsets.jobset.x-k8s.ioCRD remains. Deleting it destroys every JobSet in every namespace, sosetup resetreports it without printing a cleanup command. Assess all cluster-wide consumers and follow the owning JobSet release’s CRD upgrade or removal procedure.
helm uninstall leaves the CRDs behind
Helm intentionally never deletes CRDs that live in a chart’s crds/ directory (to avoid accidental data loss), so a manual helm uninstall nvcre leaves all seven nvcre.nvidia.com CRDs — and every remaining custom resource instance — in the cluster. Delete them explicitly:
Warning: deleting a CRD deletes all instances of that resource cluster-wide, including any Certification results you have not exported. Save reports first with nvcrectl certification report <name> --results-file <path>.
Production security checklist
Use this checklist before going live. Each item addresses a specific risk surface.
Next steps
- Monitoring — Set up Prometheus metrics and alerting.
- Troubleshooting — Diagnose common production issues.
- Install — First-time installation instructions.