nvcrectl setup
nvcrectl setup init
Installs CRE via Helm and its dependencies on the target cluster.
What it installs
Runs two phases in order:
Use --skip-phases=deps to skip Kubeflow Trainer if it is already installed.
Retry behavior and automatic recovery
setup init converges from any partial state, so re-running it after a failure is always safe to try:
-
Already deployed: when the
kubeflow-trainerrelease isdeployedat the pinned chart version, thedepsphase prints “already deployed” and skips the upgrade entirely. Not re-rendering the chart means not re-rolling its webhook certificates. -
Failed or pending release: the install is attempted once. If it fails with the webhook Secret field-ownership conflict signature (
Apply failed with ... conflictson.datafields of Secrets inkubeflow-system) and the release state agrees (failedorpending-*),setup initperforms an automatic recovery: uninstall the release, delete its four CRDs (trainjobs,trainingruntimes,clustertrainingruntimesintrainer.kubeflow.org;jobsetsinjobset.x-k8s.io), delete thekubeflow-systemnamespace, and reinstall the pinned chart. Exactly one recovery attempt is made per run. -
Safety gate: automatic recovery is refused when any
TrainJoborJobSetinstance exists, or when aTrainingRuntime/ClusterTrainingRuntimeexists that is not Helm-owned (missing theapp.kubernetes.io/managed-by: Helmlabel) — deleting the CRDs would destroy them. In that case, and for any ambiguous failure,setup initfails fast and prints the manual procedure: -
Confirmation: in interactive mode the recovery plan is printed and re-confirmed before anything is deleted;
--auto-approvecovers CI.
Automatic recovery deletes the kubeflow-system namespace, including anything you placed there manually. The namespace is created and managed by setup init.
Flags
Example
nvcrectl setup status
Reports the installation status of CRE and its dependencies by querying the cluster.
Components checked: creCRDs, creController, kubeflowTrainer, logProfiles, gpuOperator, dcgm (optional).
The Helm releases managed by setup init (cluster-readiness-engine and kubeflow-trainer) are also checked via the helm CLI and reported under helmReleases. A release in a failed or pending state (e.g. failed, pending-upgrade) makes the status not ready. A release helm has no record of, or that cannot be queried (helm not in PATH), is reported but does not affect readiness.
Flags
Example
nvcrectl setup reset
Removes CRE and its dependencies from the target cluster. Kubeflow Trainer is removed by default.
What it removes
Runs three phases in order:
Use --skip-phases=deps to keep Kubeflow Trainer.
After all phases complete, setup reset prints a Retained resources block listing any namespaces or secrets that were not deleted (Helm never removes the release namespace, and the nvcrectl-pull-secret created by setup init is outside the Helm release). Each entry includes the kubectl delete command to remove it manually if you want a pristine cluster.
Flags
Example
reset deletes all Certification, Workflow, and Job resources. This is irreversible.