Skip to navigation

Deployment

View as MarkdownOpen in Claude

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).

MethodAudienceInstalls Kubeflow Trainer
nvcrectl setup initOperators, quick setupYes (skip with --skip-phases=deps)
Helm chart (oci://ghcr.io/nvidia/cluster-readiness-engine)GitOps / platform teamsNo (install separately)

nvcrectl setup init

Install the CLI first with the installer script (see Install for the full walkthrough):

curl -fsSL https://github.com/NVIDIA/cluster-readiness-engine/releases/latest/download/installer | bash

Then set up the cluster:

nvcrectl setup init

setup init runs two phases:

  1. deps — Kubeflow Trainer (required for TrainJob workloads)
  2. 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:

nvcrectl setup init --version <chart-version>

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.

Chart values for the NVCRE release go through setup init with Helm’s own flags, --values/-f, --set and --set-json, and are kept on later runs. That includes runs with no flags, such as an automation that re-runs setup init when setup status reports a missing component. Values set on the release with helm upgrade are kept the same way:

nvcrectl setup init \
--set manager.resources.requests.memory=4Gi \
--set manager.resources.limits.memory=8Gi

The controller image is the exception: it is worked out on every run, from this run’s values, else --image, else the CLI version. --reset-values returns every value except rbac.scope and rbac.runNamespaces to the chart default. Preflight prints the paths of the values the release will be given, without their contents. See Values across runs.

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.

setup init reports success only after the controller has stayed Ready for a minute with no restart. A controller that is OOMKilled or crash-looping after install fails the run, with the cause and, for an OOMKill, the --set manager.resources.limits.memory=… flag to raise the limit. See setup init.

Check the installation at any time:

nvcrectl setup status

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):

NVCRE_VERSION=$(curl -fsSL https://api.github.com/repos/NVIDIA/cluster-readiness-engine/releases/latest | jq -re .tag_name)
: "${NVCRE_VERSION:?no stable release found}"
helm show chart oci://ghcr.io/nvidia/cluster-readiness-engine --version "$NVCRE_VERSION"
helm install nvcre \
oci://ghcr.io/nvidia/cluster-readiness-engine \
--version "$NVCRE_VERSION" \
--namespace nvcre \
--create-namespace

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:

ValueDefaultPurpose
crds.enabledtrueInstall the NVCRE CRDs from the chart’s crds subchart. Set to false when the CRDs chart manages them
manager.replicas1Controller Deployment replicas
manager.image.repositoryghcr.io/nvidia/cluster-readiness-engine/managerController image
manager.image.tag"" (uses chart appVersion)Controller image tag
manager.image.digest""Pin the controller image by digest. Wins over tag; the only form that names the exact bytes you verified
manager.image.pullPolicy""Controller image pull policy: Always, IfNotPresent, or Never. Empty omits imagePullPolicy so Kubernetes defaults it from the image tag or digest; any other value fails the render
manager.imagePullSecrets[]Pull secrets for the controller image
manager.resources10m/500m CPU, 1Gi/1Gi memoryController resource requests/limits
manager.affinity{}Replace the complete controller affinity; when empty, the chart prefers spreading replicas across nodes
manager.namespaceAccessTimeout10mHow long a Workflow waits for the controller’s write access in its namespace before it fails with NamespacePermissionsMissing. See RBAC requirements
rbac.scopeclusterWhere the controller may write: cluster grants every namespace, namespaced only namespaces with a RoleBinding. See RBAC requirements
rbac.runNamespaces[]Long-lived run namespaces to bind under rbac.scope: namespaced. Each must already exist
pdb.enabledfalseCreate a controller PodDisruptionBudget
pdb.minAvailable1Minimum ready controller pods during voluntary eviction; integer or percentage
metrics.port8443Controller metrics port
metrics.serviceMonitor.enabledtrueInstall a ServiceMonitor (requires the Prometheus Operator CRDs; set to false on clusters without them)
metrics.serviceMonitor.honorLabelstrueKeep the controller’s namespace/job labels instead of overwriting them with scrape-target labels
metrics.serviceMonitor.labels{release: prometheus}Extra ServiceMonitor labels for Prometheus Operator discovery. Override release to match your kube-prometheus-stack Helm release name
metrics.serviceMonitor.interval""Optional scrape interval; empty uses the Prometheus default
metrics.serviceMonitor.scrapeTimeout""Optional scrape timeout; empty uses the Prometheus default

Keep the CRDs current with the CRDs chart

Helm installs the CRDs in the main chart only on the first install and never updates them on helm upgrade. After a plain upgrade the new controller runs against the old schema, and the API server silently drops every field the old schema lacks. nvcrectl setup init and Argo CD re-apply the CRDs on every run; a direct Helm, Helmfile or Flux install does not.

Every release also publishes the CRDs as their own chart, oci://ghcr.io/nvidia/cluster-readiness-engine-crds, at the same version as the main chart. Its CRDs are ordinary chart resources, so helm upgrade keeps them current, including removing fields. Each CRD carries helm.sh/resource-policy: keep (value crds.keep, default true), so helm uninstall of the CRDs chart leaves the CRDs and every NVCRE object in place. Install it beside the main chart, and set crds.enabled=false on the main chart, so only one release manages the CRDs:

# New install
helm install nvcre-crds oci://ghcr.io/nvidia/cluster-readiness-engine-crds \
--version "$NVCRE_VERSION" --namespace nvcre --create-namespace
helm install nvcre oci://ghcr.io/nvidia/cluster-readiness-engine \
--version "$NVCRE_VERSION" --namespace nvcre --set crds.enabled=false

Upgrade the CRDs chart first and the main chart second, with the same version. Roll back in the reverse order: the controller first, then the CRDs. A newer CRD schema under an older controller is safe; an older schema under a newer controller is the failure the CRDs chart exists to prevent. Releases add fields to the CRDs, and a field is removed only once the previous release’s controller no longer writes it.

helm upgrade nvcre-crds oci://ghcr.io/nvidia/cluster-readiness-engine-crds \
--version <new-version> --namespace nvcre
helm upgrade nvcre oci://ghcr.io/nvidia/cluster-readiness-engine \
--version <new-version> --namespace nvcre --reuse-values

Keep crds.enabled=false on the main chart for as long as the CRDs chart is installed. On Helm 4, a main-chart install with crds.enabled=true re-applies the CRDs and strips the CRDs chart’s ownership until its next upgrade, and in that window helm uninstall of the CRDs chart deletes the CRDs. crds.enabled=false works wherever Helm renders the chart, but helm show crds ignores it: retire any script that pipes helm show crds into kubectl apply in the same change that sets the value, or it keeps applying the CRDs under its own field manager.

With Helmfile, order the releases with needs:. With Flux, give the main HelmRelease a dependsOn on the CRDs release, and remove upgrade.crds: CreateReplace from it. Argo CD already re-applies the main chart’s CRDs on every sync; to move an existing Argo CD install to the CRDs chart, see Move an Argo CD install to the CRDs chart.

nvcrectl setup init leaves the CRDs to the CRDs chart when one deployed Helm release owns every CRD the chart being installed carries, and does not apply them when the release’s values set crds.enabled=false. It stops before changing anything while a release that owns any NVCRE CRD is failed or mid-operation. See setup init.

Adopt CRDs that are already installed

CRDs that setup init, the main chart, or a manual kubectl apply installed carry no Helm release metadata, so a plain helm install of the CRDs chart fails with invalid ownership metadata. Adopt them once with --take-ownership (Helm 3.17 or later), then set crds.enabled=false on the main chart:

helm install nvcre-crds oci://ghcr.io/nvidia/cluster-readiness-engine-crds \
--version <version> --namespace nvcre --take-ownership
helm upgrade nvcre oci://ghcr.io/nvidia/cluster-readiness-engine \
--version <version> --namespace nvcre --reuse-values --set crds.enabled=false

On Helm 4, CRDs that another writer server-side-applied — nvcrectl setup init (field manager nvcrectl-setup), kubectl apply --server-side, or a script built on helm show crds — are co-owned by that writer, and Helm’s apply fails with an error such as conflict with "kubectl": .spec.versions. List the writers that own spec.versions:

kubectl get crd jobs.nvcre.nvidia.com --show-managed-fields -o yaml \
| grep -E '^\s+manager:'

Stop every writer other than helm first, or the conflict comes back. Then add --force-conflicts to the adopting install, and again to the first CRDs-chart upgrade that changes the schema: when the other writer’s schema matched the chart’s, forcing the takeover alone leaves it a co-owner. Helm 3 does not conflict.

Helm applies the seven CRDs one at a time, so a conflict on one leaves the others upgraded. That state is safe while the controller has not moved, because every CRD is at its old version or newer. Check the managed fields again, rerun the CRDs-chart upgrade with --force-conflicts, and upgrade the main chart only once that rerun succeeds.

Move an Argo CD install to the CRDs chart

The main Application never owns the CRDs, so it does not prune them when it stops rendering them. Argo CD writes no tracking metadata on CRDs: under annotation tracking, the default since Argo CD 3.0, no Application owns them; under label tracking, the CRDs Application owns them through the app.kubernetes.io/instance label the CRDs chart sets to its release name. Deleting either Application, even with cascading deletion, leaves the CRDs in place whatever the tracking mode: Argo CD never deletes a CRD when it deletes an Application, and it also honors the helm.sh/resource-policy: keep annotation the CRDs chart sets. The move takes two steps, and automated pruning can stay on.

  1. Add an Application for the CRDs chart, pointing at the same repository as the main Application, with ServerSideApply=true: the Workflow and Job CRDs exceed the 256 KiB client-side apply limit. Let it sync.

    apiVersion: argoproj.io/v1alpha1
    kind: Application
    metadata:
    name: nvcre-crds
    namespace: argocd
    spec:
    project: default
    destination:
    server: https://kubernetes.default.svc
    namespace: nvcre
    source:
    repoURL: ghcr.io/nvidia # the repository the main Application uses
    chart: cluster-readiness-engine-crds
    targetRevision: &lt;version> # the main Application's version
    syncPolicy:
    automated:
    prune: true
    selfHeal: true
    syncOptions:
    - ServerSideApply=true
  2. Set crds.enabled=false in the main Application’s Helm values and let it sync.

Do step 2 soon after step 1. While both Applications render the CRDs, Argo CD applies them for both under one field manager, so each sync rewrites the other’s labels and the keep annotation until the switch. With label tracking, leave the CRDs Application’s helm.releaseName unset or different from the main Application’s name: the CRDs chart labels the CRDs with its release name.

On upgrades, move the CRDs Application’s targetRevision first and wait for it to sync, then the main Application’s.

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:

nvcrectl setup init \
--chart-ref oci://registry.example.com/mirror/cluster-readiness-engine \
--trainer-chart-ref oci://registry.example.com/mirror/kubeflow-trainer \
--image registry.example.com/mirror/manager:<version>

--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 init works exactly as shown above.

  • A pull secret bound through the chart. Create the secret in the nvcre namespace and bind it through the chart’s manager.imagePullSecrets value with setup init:

    kubectl create namespace nvcre
    kubectl create secret docker-registry mirror-pull-secret --namespace nvcre \
    --docker-server registry.example.com \
    --docker-username &lt;user> --docker-password &lt;password>
    nvcrectl setup init \
    --chart-ref oci://registry.example.com/mirror/cluster-readiness-engine \
    --trainer-chart-ref oci://registry.example.com/mirror/kubeflow-trainer \
    --set manager.image.repository=registry.example.com/mirror/manager \
    --set 'manager.imagePullSecrets[0].name=mirror-pull-secret'

    Setting only manager.image.repository is enough: the chart takes the tag from its appVersion, which is the release version. Later setup init runs keep the binding. If you also pass --image-pull-secret, its nvcrectl-pull-secret is added after yours rather than replacing it.

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:

  1. Produce or export the image somewhere that has egress — a workstation, or a build Job inside a cluster that has network access.

  2. Serve the exported tar from a pod on the nodes’ own network, or copy it to the nodes directly. A pod with hostNetwork: true running 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.

  3. Import it on every node that may run the workload:

    curl -fsS http://&lt;node-ip>:&lt;port>/image.tar | ctr -n k8s.io images import -

    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.

  4. Reference the preloaded image by an explicitly tagged reference — never :latest, because :latest (and an omitted tag) defaults to Always, which sends the kubelet to a registry that this cluster cannot reach; any other tag defaults to IfNotPresent and stays on the local copy. Name it in whichever path owns the reference: the controller chart’s manager.image.repository/manager.image.tag (or manager.image.digest for a digest-pinned image), a Certification’s spec.image or categories[].options.image, or a WorkloadRun’s spec.image. By default, the chart leaves the manager container’s imagePullPolicy unset. For a preloaded controller image, set manager.image.pullPolicy to IfNotPresent or Never. Certification and WorkloadRun expose no workload pull-policy field. The API server defaults an omitted policy according to the image reference 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 yourself. To keep the CRDs current on upgrades, install helm/cluster-readiness-engine-crds from the same source tree beside it and follow Keep the CRDs current with the CRDs chart, or re-apply the CRDs on every upgrade yourself.

Resource requirements

The controller runs as a single Deployment. The shipped defaults are:

resources:
requests:
cpu: 10m
memory: 1Gi
limits:
cpu: 500m
memory: 1Gi

Size CPU according to the number of nodes and concurrent workloads in the cluster:

Cluster sizeCPU request / limitMemory request / limitNotes
Up to ~100 nodes10m / 500m1Gi / 1GiShipped chart defaults
~100 – 500 nodes200m / 500m1Gi / 1GiIncrease CPU if reconcile latency rises
~500 – 1000 nodes500m / 1000m1Gi / 2GiRaise both CPU and memory for heavier concurrency

Memory follows the number of GPU nodes and NVCRE’s own workload pods, not the cluster’s total Pod count. The controller caches GPU Nodes and only the Pods that carry the nvcre.nvidia.com/job label, the workload pods NVCRE creates, and, for the launcher watch, the MPI launcher pods labelled nvcre.nvidia.com/launcher, one or two per MPI Job (ADR-102). Those include the pods of finished runs: a finished Job keeps its workload and pods for log inspection until its Certification is deleted, so every Certification you keep holds its completed categories’ pods in the controller’s memory. Size memory for the GPU nodes, the runs in progress and the Certifications you keep; deleting finished Certifications releases their pods. Earlier releases cached every Pod in the cluster. On a 2,678-node cluster with about 80,000 Pods, mostly DaemonSet pods, such a controller peaked at 3.83 GiB during its initial cache sync and stayed at 3.1–3.8 GiB while idle, and at the 1Gi default it was OOMKilled about 15 seconds after every start (issue #504). Pods were most of that memory.

To raise the limit, set it through setup init, which keeps it on later runs:

nvcrectl setup init \
--set manager.resources.requests.memory=4Gi \
--set manager.resources.limits.memory=8Gi

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:

manager:
replicas: 2

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.

manager:
replicas: 2
pdb:
enabled: true
minAvailable: 1

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:

manager:
replicas: 2
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/infra
operator: Exists
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: nvcre
app.kubernetes.io/instance: nvcre
control-plane: manager
topologyKey: kubernetes.io/hostname

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 permissions are split between two ClusterRoles, and neither has wildcard rules (ADR-092):

  • nvcre-manager-role is always bound cluster-wide. It holds reads, cluster-scoped writes, writes to NVCRE’s own CRDs, and event creation.
  • nvcre-run-role holds every write to a namespaced resource outside NVCRE’s API group, plus pod log reads. rbac.scope decides where it is bound.
Resourcenvcre-manager-role (cluster-wide)nvcre-run-role (per rbac.scope)Purpose
nvcre.nvidia.com/* (Certifications, Workflows, Jobs, GoodputMeasurements, BandwidthMeasurements, WorkloadRuns) + /status, /finalizersfull lifecycle—Reconcile the CRD hierarchy
nvcre.nvidia.com LogProfilesget, list, watch—Read log-parsing profiles
nodes, podsget, list, watch—Discover nodes for scheduling and health checks; track workload pod placement
persistentvolumesget, list, patch, watch—Reclaim the volumes of checkpoint PVCs the Workflow created
namespacesget—Tell whether a run namespace is terminating during teardown
authorization.k8s.io SelfSubjectAccessReviewscreate—Check the controller’s own access in a run namespace before writing there
eventscreate, patch—Emit Kubernetes events, including in a namespace that lacks the RoleBinding
resource.k8s.io ResourceSlicesget, list, watch—GPU architecture fallback on DRA-only GPU stacks with no nvidia.com/gpu.product label
k8s.cni.cncf.io NetworkAttachmentDefinitionsget, list—Find the OCI RDMA network annotated for nvidia.com/mlnxnics; read uncached, only when a category attaches it
trainer.kubeflow.org TrainJobsget, list, watch; trainjobs/status getcreate, delete, patch, updateTraining workloads via Kubeflow Trainer
configmaps—create, delete, get, patch, updateWorkflow dependencies and node-result records
persistentvolumeclaims—create, delete, get, updateCheckpoint storage dependencies; update sets the Job owner reference on a job-scoped checkpoint PVC
trainer.kubeflow.org TrainingRuntimes—create, delete, get, patch, updateTraining runtime dependencies
resource.k8s.io ResourceClaimTemplates—create, delete, get, patch, updateRoCE/DRA network resources
resource.nvidia.com ComputeDomains—create, delete, get, patch, updateMulti-Node NVLink (MNNVL) domains
pods/log—getRead training logs for goodput and bandwidth measurement

The Workflow dependency system creates supporting resources (ConfigMaps, PVCs, ComputeDomains, TrainingRuntimes, ResourceClaimTemplates) before workloads start, so the run role includes create/delete on each dependency kind the catalog and platform overrides can render. The controller reads ConfigMaps and PVCs straight from the API server rather than caching them, so neither role lists or watches them. Inspect both roles:

kubectl get clusterrole nvcre-manager-role nvcre-run-role -o yaml

Choosing rbac.scope

rbac.scopeWhere the controller can writeWhat a run needs
cluster (default)Every namespace, through the ClusterRoleBinding nvcre-run-rolebinding. This is the grant earlier releases made.Nothing
namespacedOnly namespaces with a RoleBinding nvcre-manager-run to nvcre-run-roleA RoleBinding in the run namespace

The default becomes namespaced in the next minor release. Under cluster, the controller can overwrite any ConfigMap in the cluster (including kube-system/aws-auth on EKS), delete any PVC, and read any pod’s logs. namespaced confines that to the namespaces runs actually use. Switch before the default flips if you apply Certifications or Workflows with kubectl or GitOps, and add the bindings below first.

Under namespaced, a run namespace gets its RoleBinding in one of three ways:

  • nvcrectl creates it in a namespace it creates itself: the generated nvcrectl-<timestamp> namespace of certification run, or any -n namespace that did not exist yet. Deleting the namespace removes the binding with it. In a namespace that already existed, including default (where workloadrun run lands without -n), nvcrectl stops before submitting anything and prints the binding, so a shared namespace never becomes a standing grant by accident. Pass --grant-run-access to create it there on purpose; --cleanup deletes it once the run is gone, unless another Certification, WorkloadRun or Workflow is still in the namespace. If you cannot read the cluster-scoped nvcre-run-rolebinding and nvcre-run-role, nvcrectl cannot tell which scope is installed; it then submits with a warning instead of stopping, and a missing binding shows up as the controller’s wait. Creating the binding takes the user’s own permissions: every permission in nvcre-run-role within the namespace (a namespace admin has them), or bind on clusterroles/nvcre-run-role.
  • rbac.runNamespaces lists long-lived run namespaces, such as GitOps or Run:ai project namespaces, and the chart renders one RoleBinding per entry. The chart does not create these namespaces; a listed namespace that does not exist fails the install with NotFound.
  • You apply the binding next to your Certification or Workflow; see Running without nvcrectl.

A Workflow in a namespace without the binding does not fail at once. It stays InProgress with reason NamespacePermissionsMissing, emits a NamespaceAccessDenied Warning naming the binding, and proceeds on its own when the binding appears, so a GitOps sync that applies the Certification before the RoleBinding still runs. If the binding has not appeared after manager.namespaceAccessTimeout (default 10 minutes), the Workflow fails with the same reason and the RoleBinding manifest in its message. See Troubleshooting.

nvcrectl setup init keeps rbac.*. Re-running it keeps the installed release’s rbac.scope and rbac.runNamespaces, as it keeps every other value set on the release (Values across runs). Even --reset-values keeps these two, so a re-run never widens a namespaced grant. Pass --rbac-scope cluster|namespaced to change the scope:

nvcrectl setup init --rbac-scope namespaced

init stops rather than upgrading if it cannot read the installed release’s values, since upgrading without them would reset the scope. If you manage the release with Helm directly, helm upgrade with any --set or -f and without --reuse-values or --reset-then-reuse-values drops rbac.* back to the defaults the same way.

Running without nvcrectl

Print the RoleBinding for a namespace and apply it, or commit it next to the Certification:

nvcrectl rbac print --namespace <run-namespace> | kubectl apply -f -
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: nvcre-manager-run
namespace: <run-namespace>
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nvcre-run-role
subjects:
- kind: ServiceAccount
name: nvcre-manager
namespace: nvcre

The subject is the controller’s ServiceAccount. nvcrectl setup init installs it as nvcre-manager in namespace nvcre. A Helm release with another name or namespace has another ServiceAccount; pass --service-account and --controller-namespace to nvcrectl rbac print, or copy the subject from kubectl get clusterrolebinding nvcre-manager-rolebinding -o yaml. A waiting Workflow’s message names the ServiceAccount it needs.

Delete the binding only after the Certification or WorkloadRun that needed it is fully deleted: the controller’s finalizers write in the namespace until then. If the namespace itself is being deleted, the finalizers do not wait for the binding.

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:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-metrics-traffic
namespace: nvcre
spec:
podSelector:
matchLabels:
control-plane: manager
policyTypes: [Ingress]
ingress:
- from:
- namespaceSelector:
matchLabels:
metrics: enabled
ports:
- port: 8443 # metrics

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)

ParameterDefaultLarge clusterNotes
Controller CPU limit500m1000mCEL evaluation scales with node count
Controller memory limit1GiBy GPU nodes and NVCRE’s own podsFollows the GPU node count and NVCRE’s workload pods, from runs in progress and from Certifications still kept, not the cluster-wide Pod count (Resource requirements). Set with setup init --set manager.resources.limits.memory=…
GoodputMeasurement sampleInterval60s120sReduces API server log fetch load
Certification category concurrencyUnlimitedPartition by node groupsUse multiple Certifications for >500 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:

  1. Mirror the controller image (ghcr.io/nvidia/cluster-readiness-engine/manager) and the Kubeflow Trainer images to your internal registry
  2. Install the Helm chart with manager.image.repository pointing at your internal registry
  3. 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:

  1. Bake the source into the workload image. /opt/megatron-lm is the documented in-image location the entries look for. Extend the training image with the pinned checkout:

    RUN git clone --depth 1 -b core_v0.15.2 https://github.com/NVIDIA/Megatron-LM.git /opt/megatron-lm

    That exact line keeps the branch pin identical to the one the init container would clone and leaves .git present 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 with categories[].options.image, which also replaces the megatron-clone init 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. The default reference is nvcr.io/nvidia/pytorch:25.08-py3, with two exceptions:

    • AWS RTX PRO 6000, Nemotron 5 8B: The unmodified PyTorch image uses nvcr.io/nvidia/pytorch:26.03-py3@sha256:3c90e38f5ec51e51d1c73bd7eb3d83674a254f451147c5cadc4344314258a112. A Megatron-LM-extended image has a different digest: set categories[].options.image to its own reference and pre-load or mirror that reference. The override also updates megatron-clone and megatron-ddp-stream-order, so neither init container needs a separate image. See AWS RTX PRO 6000.
    • GCP H100: the training image follows the TCPXO plugin version detected on the nodes (pytorch:25.06-py3 for plugin v1.0.15 and v1.0.16, and when detection finds no release); see GCP H100 clusters.

    nvcrectl certification render --dry-run prints the reference it picked.

  2. Pre-seed the workspace PVC. Set enableCheckpoint: true (plus storageClassName if the cluster has no default StorageClass). The category then mounts a PersistentVolumeClaim named <variant>-pvc (for example nemotron5-8b-pvc) at /mnt/workspace instead of a memory-backed emptyDir. Pre-populate that volume with the Megatron-LM source at megatron-lm/ before creating the Certification: the init container uses the workspace unchanged whenever /mnt/workspace/megatron-lm exists (a plain source export works; .git is not required). Without enableCheckpoint the workspace is an emptyDir, so this option does not apply and the source is resolved from the image or the network on every pod start.

  3. Point the clone at an internal Git mirror. For sites that run one, set sourceRepo on the Certification, either globally in spec or per category under categories[].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 the core_v0.15.2 branch. The URL must use an authenticated remote scheme (https:// or ssh://); http:// and git:// URLs (unauthenticated transports the workload would execute code from), scp-style git@host:path syntax, and file:// 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.

    spec:
    sourceRepo: https://git.example.com/mirrors/Megatron-LM.git

For AWS RTX PRO 6000, the 8B category runs megatron-ddp-stream-order after source resolution, including for sourceRepo, in-image and pre-seeded sources. It applies the DDP stream-ordering backport only to the inspected core_v0.15.2 training.py hash. An already-patched source is left unchanged; another revision is left unchanged only if the AST of its entire get_model function matches the inspected synchronized implementation. This verifies both stream waits in their original positions around DDP construction. Comments and formatting may differ; unrelated, conditional or misplaced wait calls do not satisfy the check. Sources without the inspected hash or function AST fail initialization. A different upstream fix may use another structure and is not automatically recognized. Inspect the megatron-ddp-stream-order init container’s logs for the explanation if the training pod stalls at startup. Mirroring the pinned source does not require a different hash or bypass this check.

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:

EndpointProbe typePurpose
/healthzLivenessRestart the pod if the process is deadlocked
/readyzReadinessRemove the pod from service until it is ready to reconcile

Shipped probe configuration:

livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10

Upgrades

  1. Review the release notes for breaking changes.

  2. Bring the CRDs to the new version first. With the CRDs chart, upgrade it:

    helm upgrade nvcre-crds oci://ghcr.io/nvidia/cluster-readiness-engine-crds \
    --version &lt;new-version> --namespace nvcre

    Without it, apply the new chart version’s CRDs by hand. Helm never updates the main chart’s CRDs on helm upgrade — it applies them only on the first install — so skipping this step leaves the installed CRDs at the old schema:

    helm show crds oci://ghcr.io/nvidia/cluster-readiness-engine --version &lt;new-version> \
    | kubectl apply --server-side --force-conflicts -f -
  3. Upgrade the Helm release:

    helm upgrade nvcre \
    oci://ghcr.io/nvidia/cluster-readiness-engine \
    --version &lt;new-version> \
    --namespace nvcre

    With --reuse-values, Helm keeps the chart defaults stored with the installed release. Charts through v0.8.2 defaulted manager.image.pullPolicy to IfNotPresent without rendering it, so a --reuse-values upgrade from one of them renders imagePullPolicy: IfNotPresent; only a :latest controller image behaves differently, switching from Always to IfNotPresent. Add --set-string manager.image.pullPolicy= to omit the field, or use --reset-then-reuse-values (Helm 3.14 and later), which takes the new chart’s defaults and keeps the values set on the release. Those charts also ignored the value itself, while later charts accept only an empty value, Always, IfNotPresent, or Never: clear any other value set on the release with --set-string manager.image.pullPolicy=, or with nvcrectl setup init --reset-values.

  4. Verify the rollout:

    kubectl rollout status -n nvcre deploy/nvcre-manager

To roll back:

helm rollback nvcre <revision> --namespace nvcre

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

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 nvcre and kubeflow-system namespaces are not deleted.
  • The nvcrectl-pull-secret image pull secret created by setup init --image-pull-secret remains in the nvcre namespace.
  • The shared jobsets.jobset.x-k8s.io CRD remains. Deleting it destroys every JobSet in every namespace, so setup reset reports it without printing a cleanup command. Assess all cluster-wide consumers and follow the owning JobSet release’s CRD upgrade or removal procedure.
# Removes both retained namespaces (and the pull secret inside them).
# Inventory kubeflow-system first; it may contain externally managed resources.
kubectl delete namespace nvcre kubeflow-system

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. The CRDs chart keeps them too: its CRDs carry helm.sh/resource-policy: keep unless it was installed with crds.keep=false. Delete them explicitly:

kubectl delete crd \
bandwidthmeasurements.nvcre.nvidia.com \
certifications.nvcre.nvidia.com \
goodputmeasurements.nvcre.nvidia.com \
jobs.nvcre.nvidia.com \
logprofiles.nvcre.nvidia.com \
workflows.nvcre.nvidia.com \
workloadruns.nvcre.nvidia.com

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.

ItemStatusWhat to verify
Network policyRequiredRestrict egress to the Kubernetes API server and DNS only. No NetworkPolicy ships with the chart — add one for your environment.
RBAC auditRequiredRun kubectl get clusterrole nvcre-manager-role nvcre-run-role -o yaml and verify the permissions match your security requirements. Set rbac.scope: namespaced so the controller writes only in namespaces that have a RoleBinding; see Choosing rbac.scope.
TLS for metricsRecommendedThe default ServiceMonitor uses insecureSkipVerify: true. Configure cert-manager to issue a serving certificate for the controller’s metrics endpoint.
Controller node affinityRecommendedSchedule the controller on infrastructure nodes, not GPU nodes, using manager.affinity. This value replaces the chart’s complete default affinity, so include pod anti-affinity in the override when running multiple replicas.
Image provenanceRecommendedVerify the image signature and its SLSA provenance against the exact signing identity before deploying, then pin what you verified with --set manager.image.digest=sha256:... rather than deploying by tag — a tag can be repointed after you check it. The provenance names the commit, ref and workflow that built it. See Verifying release artifacts. Scan images with your vulnerability tooling before deployment.
Pod Security StandardsVerifyThe controller runs as non-root with seccompProfile: RuntimeDefault, a read-only root filesystem, and all capabilities dropped. Verify with kubectl get pod -n nvcre -o yaml.
CRD backupRecommendedInclude the NVCRE CRDs in your cluster backup strategy. Certification resources contain node health state that may be needed for audit.

Next steps

  • Monitoring — Set up Prometheus metrics and alerting.
  • Troubleshooting — Diagnose common production issues.
  • Install — First-time installation instructions.