Files
nvke/docs/lifecycle.md
patelpayal 4e6b59ff43 docs: add a workload cluster Kubernetes upgrade page (#2274)
* docs: add a workload cluster Kubernetes upgrade page

Signed-off-by: Payal Patel <payapatel@nvidia.com>

* docs: address review on the upgrade page

Signed-off-by: Payal Patel <payapatel@nvidia.com>

---------

Signed-off-by: Payal Patel <payapatel@nvidia.com>
2026-11-12 14:31:39 -08:00

4.8 KiB

Day 0 → Day 1 → Day 2 Lifecycle

NVKE operations are organized into three phases that match what you're doing to the infrastructure: building it, configuring it, and running it.

Day 0            Day 1                      Day 2
──────────────   ────────────────────────   ─────────────────────────────
Bootstrap the    Install the site stack     Operate tenant clusters
management cluster and first tenant cluster   and the platform
cluster

Day 0 — Bootstrap

Goal: Turn a set of bare, prepared nodes into a running Kubernetes cluster that will host the management plane.

nvkectl bootstrap site does this. It creates a temporary Kind cluster on the init node, uses it to drive kubeadm init and kubeadm join on your nodes through nvke-agent gRPC, and tears the temporary cluster down when done. You are left with:

  • A Kubernetes cluster (<sitename>.kubeconfig)
  • An etcd encryption key (<sitename>-etcd-encryption-key.json) — move this off the bootstrap host immediately

The cluster at this point is a plain kubeadm cluster. No NVKE services are installed.

What Day 0 requires:

  • Ubuntu 24.04 or 26.04 nodes with nvke-agent running (see Pre-Provisioned Nodes or Custom Base OS)
  • nvkectl, nerdctl, kind on the init node
  • Network reach from the init node to all nodes on port 15005

See: Management cluster bootstrap · Your First Cluster — Real Site

Day 1 — Configuration

Goal: Turn the bare cluster into a self-managing NVKE site that can mint tenant clusters.

This phase installs everything that makes the cluster an NVKE site:

  1. Deploy the NVKE component stack — the controller, Temporal, PostgreSQL, SPIRE, NVKE telemetry pipeline (NKTP) and CAPNICo, as the deploy/nico deploy path lists them. deploy/nvke-deploy.sh installs it from the site spec and the stack config, and from an NVKR release description when you install from a release, one step of a short list of commands; your GitOps tooling can deliver the same items. See Run NVKE end to end on one machine and Deploy Path.
  2. Configure CAPNICo — the deploy path installed it in step 1; connect it to your NICo site with the nico-credentials Secret the same step rendered. Run nvkectl get providers to confirm nico: CONFIGURED.
  3. Ingest the site into NVKE — the NVKE team registers the site and applies the etcd encryption key from Day 0. This step requires coordination with the NVKE team; contact your NVKE onboarding contact with your site's kubeconfig and the etcd encryption key file from Day 0.
  4. Create your first tenant cluster — nvkectl create cluster -f cluster.yaml. See Your First Cluster — Path C, Step 8.

What Day 1 requires:

  • A working NICo site with capacity allocated for the instance types your cluster spec uses
  • The site spec from Day 0, the stack config that holds the management plane's inputs, and the NVKR release description if you install from a release
  • The etcd encryption key from Day 0

See: Your First Cluster · NICo documentation

Day 2 — Operations

Goal: Keep the platform running, deliver Kubernetes clusters to tenants, and stay current.

Once the site is ingested, day-2 operations go through NVKE:

Operation How
Create a tenant cluster nvkectl create cluster -f spec.yaml
List tenant clusters nvkectl get clusters
Get a tenant kubeconfig nvkectl get kubeconfig <name>
Add a node pool nvkectl create nodepool -f spec.yaml
Scale a node pool nvkectl patch nodepool <name> --cluster <cluster> --patch 'desiredNodeCount: N'
Upgrade a cluster's Kubernetes version nvkectl patch cluster <name> --patch 'controlPlaneKubernetesVersion: "<X.Y.Z>"', then each node pool; see Upgrade a workload cluster's Kubernetes version
Delete a tenant cluster nvkectl delete cluster <name>
Check infrastructure provider status nvkectl get providers

Node health and break-fix policy are handled by NVSentinel or your own break-fix system — NVKE provides the lifecycle APIs; cordon, drain, and SLO policy are yours to enforce. See Node Lifecycle.

What Day 2 requires:

  • A healthy NICo site with available capacity
  • The management plane stack running and healthy
  • CAPNICo in CONFIGURED state (nvkectl get providers)