* refactor(controller): ask one cluster method at each control-plane endpoint gate Each gate that scales, upgrades or replaces control-plane nodes tested the control-plane VIP for an empty string by itself. The gates now call db.Cluster.HasStableControlPlaneEndpoint, which is true when the cluster has a VIP. The gates are the count check at create and scale, the upgrade and rollout checks of the cluster API, the node delete guard, the control-plane controller (recycling, remediation, rebalance, stuck pending nodes) and the node pool controller (surge, NodeSet replacement). No behavior changes. A later change adds a second kind of stable endpoint to the method. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): add controlPlaneEndpoint to the cluster API schema A cluster can name an API server endpoint that NVKE does not manage, for example a load balancer in front of the API servers. The create request gets the optional object controlPlaneEndpoint. Its type says who manages the endpoint, and the block named after the type carries what that type needs. This change has one type, External, with a host and an optional port in the external block. The port defaults to 6443. The cluster response returns the type and the resolved host and port. The update request has no such property, so the value is fixed at creation. The shape is the one of the proposal for a load balancer as the control plane endpoint, and this change is its first part. The enum of the type has only External. The other types of the proposal come later. A new enum value passes the API compatibility check, and a removed one does not, so the enum lists only what the code does. The existing descriptions change only where the new field makes them wrong or incomplete: - The overview of the Clusters tag and the description of controlPlaneVIP say which address is the API server endpoint. - Seven sentences that say an operation requires controlPlaneVIP now name both fields. Each is one changed line. - The 400 list of the create operation gets the new reasons. - The desiredNodeCount descriptions of the two node pool requests lose their sentence about control-plane pools. The node pool handlers refuse each create and each update of a control-plane node pool, so no request reaches a rule on that count. This change is only api/openapi.yaml and the code that make generate writes from it (models.gen.go, server.gen.go). The handler does not read the field yet. The next changes store it, check it and use it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): store controlPlaneEndpoint in the clusters table The clusters table gets three nullable columns for the API server endpoint that a cluster was created with: control_plane_endpoint_type, control_plane_endpoint_host and control_plane_endpoint_port. db.Cluster gets the fields ControlPlaneEndpointType, ControlPlaneEndpointHost and ControlPlaneEndpointPort. The type says who manages the endpoint. The one type is External, an endpoint that NVKE does not manage. The host and the port are the resolved endpoint. A cluster without the field stores NULL in the three columns, which is what each existing row has after the migration. An empty type marks such a row. control_plane_vip does not change. No handler writes the fields yet and no workflow reads them. The test proves that the values come back from a read and stay in the row through an update of the cluster. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): count controlPlaneEndpoint as a stable endpoint at each gate db.Cluster.HasStableControlPlaneEndpoint is now true for a cluster with an endpoint of the type External, as it is for one with a VIP. Each gate that scales, upgrades or replaces control-plane nodes asks this method, so the one line opens them all: scale-up, upgrade and rollout in the cluster API, node delete, recycling, remediation, rebalance, stuck pending nodes, surge and NodeSet replacement. The method reads the stored type and not the host. An empty type is a cluster without the field, and a type that this controller does not know is no stable endpoint. The tests run each gate with such a cluster. Recycling, remediation, rebalance and stuck pending nodes share one check, controlPlaneReplacementBlocked, which gets its own test. The 400 messages and the log warnings of the gates keep their text. Each of them is given only for a cluster with no VIP and no controlPlaneEndpoint. allowControlPlaneWithoutVIP keeps its meaning and its default. No cluster has the field yet, because the create request does not store it. A later change adds that, with the count check at create. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): check controlPlaneEndpoint on cluster create The create request is now rejected with 400 when it has both controlPlaneEndpoint and controlPlaneVIP, when the type is not External, when the type External has no external block, and when the host or the port is not valid. The host is a DNS name or an IPv4 address. A DNS name is lowercase, has at most 253 characters, no trailing dot and no wildcard. An IPv4 address must be unicast, not loopback and not link-local, and outside the pod and service CIDRs. The port is a number from 1 to 65535, and 6443 when the request has none. A host of only digits and dots must be a valid IPv4 address, so that a mistyped address does not pass as a DNS name and skip the address rules. A DNS name is not checked against the CIDRs, because NVKE cannot tell which addresses it resolves to. The host is not trimmed. NVKE does not resolve or dial the endpoint. The CIDR rule of controlPlaneVIP moves into a helper that both fields use. Its messages keep their text, and the checks of controlPlaneVIP do not change. The checks come before the change that stores the value, so that no commit stores a value without them. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): use controlPlaneEndpoint for kubeadm init kubeadm init now takes its controlPlaneEndpoint from one function, kubeadmControlPlaneEndpoint. For a cluster with an external endpoint the value is host:port. Without one it is the kube-vip VIP, then the IP of the initializing node, as before. The value goes into the ClusterConfiguration and into the request to the node agent, as before. NVKE also names the host of an external endpoint in apiServer.certSANs of the ClusterConfiguration. kubeadm adds the host of its controlPlaneEndpoint to the API server certificate by itself. The explicit entry keeps certificate renewal and control-plane joins correct if that default changes. A cluster without an external endpoint gets no certSANs entry, so its configuration does not change. The step fails for a cluster row with an endpoint type that this controller does not know, and for an external endpoint with no host or no port. The address goes into each certificate and each kubeconfig of the cluster, so the step does not guess. The kube-vip step needs no change and gets no check for the new field. It returns with no action for a cluster without a VIP, and a cluster with a controlPlaneEndpoint has no VIP: the create request refuses the two fields together, and no other request writes either of them to the cluster row. One test keeps this true: for such a cluster the step makes no kube-vip call and runs no script on the node. Each later step reads the endpoint back from what kubeadm wrote: the join string, admin.conf and the Cluster API endpoint. They need no change. No cluster has the field yet. The next change makes the create request store it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): accept controlPlaneEndpoint on cluster create The create request now stores controlPlaneEndpoint in the cluster row: the type, the host and the resolved port, which is 6443 when the request names none. The cluster response returns the type and the resolved host and port. The response leaves the field out when the cluster has none. The count check at create asks HasStableControlPlaneEndpoint of the fields that the request would store. So a request with an external endpoint can ask for more than one control-plane node, as one with a VIP can. The tests go through the service and through the HTTP handler with the OpenAPI validator: at each level requests that are accepted and requests that are refused, then the bounds that only the schema checks, and a PATCH with the field, which the schema refuses. One test checks the JSON form of the field in the response. The full table of refused values is in the test of the check itself. This change comes after each part that reads the value, so that no cluster can have the field before kubeadm init uses it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: describe controlPlaneEndpoint for workload clusters The pages that state the VIP rule now name controlPlaneEndpoint as the second way to give a cluster a stable API address: the cluster spec table and the count rule in the create guide, the API address in the two access pages, the upgrade rule in the supported platforms, and the installation plan. The create guide shows the object with the type External, its host and its port, and says what the response returns. It says what the endpoint must do before the request, and that NVKE does not resolve or call the endpoint when it accepts the request. The access page says that NVKE does not take a node out of the endpoint before it restarts the API server or etcd there, so the health check of the endpoint must do it. The pages come after the change that stores the value, so that each sentence is true when it is added. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * fix(controller): reject a DNS label over 63 characters in controlPlaneEndpoint The host check of an external control plane endpoint used IsDNS1123Subdomain, which checks the whole length and the form of a DNS name and not the length of each label. So a name with a label of 64 characters passed the check, and DNS has no such name. The check now also rejects a label of more than 63 characters. The text of the field in the spec says so, and the generated code follows it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: say that an endpoint health check acts after the failure The access page said that the endpoint must stop traffic to a node through its own health check. A health check sees a failure only after it happens, so a call can fail between the restart of the API server or of etcd and that check. The page says so now. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
21 KiB
Create a workload cluster
This page describes how to create an NVIDIA Kubernetes Engine (NVKE) workload cluster for a customer with nvkectl, watch it until its nodes are ready, change its day-2 settings, and delete it. You create workload clusters after you configure the infrastructure provider, and before you give the customer access.
Before you begin
-
You have completed Install the management plane and Configure an infrastructure provider: NICo.
-
nvkectlpoints at your management plane, set withnvkectl config set-site, andnvkectl get providersreports thenicorow asCONFIGURED. If you turned on API authentication,nvkectluses an OpenID Connect (OIDC) kubeconfig, as described in Secure the NVKE API.nvkectl get providersreads the management cluster's Kubernetes API with that kubeconfig, which the bootstrap does not configure to accept tokens from your identity provider, so the command fails. Check the provider with the management cluster's admin kubeconfig instead:kubectl --kubeconfig <CLUSTER_NAME>.kubeconfig -n capnico-system get deploy,secretThe Deployment
controller-managershows all replicas ready, and the Secretnico-credentialsis listed.<CLUSTER_NAME>is the management cluster's name. -
You have the NVIDIA Infra Controller (NICo) identifiers listed in Collect the NICo identifiers: the organization, site and virtual private cloud (VPC) IDs, the instance type IDs, the VPC prefix or subnet IDs, and optionally SSH key group IDs.
-
The releases you plan to use exist on the management cluster. The control plane names a cluster release and each node pool names a node pool release. List them with
nvkectl get clusterreleasesandnvkectl get nodepoolreleases. -
If the cluster has more than one control-plane node, you have an unused, routable IPv4 address on the control-plane network for the Kubernetes API virtual IP address (VIP), or an endpoint that you operate yourself, such as a load balancer, to set as
controlPlaneEndpoint. -
If you set
controlPlaneEndpoint, the endpoint exists before you create the cluster. It forwards TCP connections to port 6443 of each control-plane node whose API server is ready, and it reaches the first control-plane node while NVKE creates the cluster. Each node of the cluster and the NVKE controller can reach the endpoint. NVKE does not resolve or call the endpoint when it accepts the request, so a wrong host or port shows only when the first control-plane node starts. -
curlandjqare installed, for the REST calls on this page.
Write the cluster spec
The cluster spec is a YAML file that describes the cluster, its control plane and its initial worker node pools. Its fields are those of the CreateClusterRequest in the NVKE REST API reference, and nvkectl rejects any field the schema does not define.
-
Write the spec and save it as
cluster.yaml.name: <WORKLOAD_CLUSTER> controlPlaneKubernetesVersion: <K8S_VERSION> cniPlugin: ovn-kubernetes etcdEncrypted: true controlPlaneVIP: <API_VIP> network: podCIDR: 192.168.0.0/16 serviceCIDR: 10.96.0.0/12 nico: orgID: <NICO_ORG_ID> siteID: <NICO_SITE_ID> vpcID: <NICO_VPC_ID> controlPlaneConfig: desiredCount: 3 maxSurge: 1 systemReservedMemory: 16Gi nico: instanceTypePreference: - <CP_INSTANCE_TYPE_ID> vpcPrefixIDs: - <VPC_PREFIX_ID> sshKeyGroupIDs: - <SSH_KEY_GROUP_ID> release: <CP_RELEASE> nodePools: - name: gpu-workers nodeNamePrefix: w desiredNodeCount: 2 nico: instanceTypeID: <WORKER_INSTANCE_TYPE_ID> vpcPrefixIDs: - <VPC_PREFIX_ID> sshKeyGroupIDs: - <SSH_KEY_GROUP_ID> release: <WORKER_RELEASE><WORKLOAD_CLUSTER>: a lowercase DNS label of at most 55 characters, unique on the management plane, such asexample-customer-a. Node names are built from it.<K8S_VERSION>: the Kubernetes version asX.Y.Zwith no leadingv, such as1.36.3. Use a version your releases' node images carry; see Supported platforms and versions.<API_VIP>: the Kubernetes API VIP. It must be outside the pod and service CIDRs.<NICO_ORG_ID>,<NICO_SITE_ID>and<NICO_VPC_ID>: your NICo organization ID, and the site and VPC IDs. Every NICo ID in the spec except the organization ID is a UUID.<CP_INSTANCE_TYPE_ID>and<WORKER_INSTANCE_TYPE_ID>: NICo instance type IDs.instanceTypePreferenceis a required, ordered list: add more IDs after the first as fallbacks.<VPC_PREFIX_ID>: a NICo VPC prefix ID. On a site without native networking, usesubnetIDswith subnet IDs instead. Eachnicoobject takes exactly one of the two.<SSH_KEY_GROUP_ID>: a NICo SSH key group for node access. Optional; omitsshKeyGroupIDsto add none.<CP_RELEASE>: the name of a cluster release.<WORKER_RELEASE>: the name of a node pool release.
-
Review the settings that are fixed at creation.
Field Default Notes cniPluginovn-kubernetescniVersiondefaults to2.4.2, the version the node image carries.etcdEncryptedNone, required Encrypts etcd at rest. You can turn encryption on later, but not off. controlPlaneVIPNone Without a VIP or a controlPlaneEndpoint, the API endpoint is the first control-plane node's IP. By default,desiredCountmust be1, and you cannot later scale the control plane above one node, upgrade it or replace its nodes. The development override permits those operations without either. Recreate the cluster to add a VIP.controlPlaneEndpointNone An API endpoint that NVKE does not manage, in place of controlPlaneVIP. SettypetoExternal, which is the only type, and giveexternal.hostand, if it is not6443,external.port. The host is a lowercase DNS name, or an IPv4 address that is unicast, not loopback or link-local, and outside the pod and service CIDRs. NVKE giveshost:portto kubeadm as the control-plane endpoint, adds the host to the API server certificate and runs nokube-vip. The cluster can scale, upgrade and replace control-plane nodes as with a VIP. A request with both fields is rejected, and the endpoint cannot change after creation. Before you begin says what the endpoint must do, and the example after this table shows the form.network.podCIDR192.168.0.0/16Private IPv4 CIDRs, comma-separated, each /12to/23. Needs one/24for every node in the request, plus one.network.serviceCIDR10.96.0.0/12Private IPv4, /12to/24.nico.orgID,siteID,vpcIDNone, required Fixed for the life of the cluster. The network cannot be changed after creation.
To use an endpoint that you operate yourself, such as a load balancer, replace the
controlPlaneVIPline of the spec with acontrolPlaneEndpointobject:controlPlaneEndpoint: type: External external: host: api.tenant-a.example.internal port: 6443The response of the create request and
GET /api/clusters/<CLUSTER_ID>return the endpoint ascontrolPlaneEndpoint, with itstypeand the resolvedhostandport. -
Review the control-plane and node pool settings.
Field Default Notes controlPlaneConfig.desiredCountNone, required Number of control-plane nodes. Use an odd number so that etcd keeps a quorum. More than one requires controlPlaneVIPorcontrolPlaneEndpointunless the controller enables the development override described below. Exactly two is excluded from automatic certificate renewal: create the cluster with one, or three or more. An existing two-node cluster cannot scale down to one and must be scaled to three or more.controlPlaneConfig.maxSurge0Extra control-plane nodes allowed during a rollout: 0or1.controlPlaneConfig.systemReservedMemory16GiMemory the kubelet reserves for system daemons. controlPlaneConfig.nodeLabelsNone Labels applied to each control-plane node after it joins. Set at creation; updating them is not supported, see Preview status and known limitations. Control-plane nodes take no custom taints. nico.configProfile(control plane or node pool)None Optional. Without one, the nodes run no config profile hooks. nodePools[].nodeNamePrefixNone, required Node names are <WORKLOAD_CLUSTER>-<nodeNamePrefix>-<NNNN>and must fit in 63 characters.nodePools[].systemReservedMemory16GikubeReservedMemorydefaults to2Gi.nodePools[].nico.diskSelectionStrategysmallestThe disk the OS is installed on: smallestorlargest.Node pools also take
recycleBudgetandautoModeDisabled, and acceptnodeLabelsandnodeTaints, which are applied to each node when it joins. Manage node pools describes them. You can create the cluster with nonodePoolsand add pools later.
Create the cluster
-
Create the cluster from the spec.
nvkectl create cluster -f cluster.yamlThe command prints
Cluster "<WORKLOAD_CLUSTER>" created (id: <CLUSTER_ID>)and returns before provisioning finishes.-f -reads the spec from standard input.If the request is invalid, the command prints the API's error and creates nothing. Common causes are a duplicate name, a missing
nico.orgID,siteIDorvpcID, a missing control-planerelease,maxSurgeabove1, a pod CIDR too small for the nodes, and a VIP inside the pod or service CIDR.The API does not check release names at creation. A name with no matching release fails when the first node provisions.
The equivalent REST call sends the same fields as JSON to POST /api/clusters. Here cluster.json is cluster.yaml converted to JSON:
curl -X POST http://<MANAGEMENT_ADDRESS>:30080/api/clusters \
-H "Content-Type: application/json" \
--data @cluster.json
<MANAGEMENT_ADDRESS> is the management cluster's API VIP, or the node IP of a single-node management cluster. If API authentication is on, add -H "Authorization: Bearer <TOKEN>" to each curl command that calls /api/, where <TOKEN> is a JSON Web Token (JWT) from your identity provider, as described in Secure the NVKE API. The API returns 201 with the new cluster, or 400 with a message.
Watch it come up
-
Check the cluster's status.
nvkectl get clusters <WORKLOAD_CLUSTER>STATUSreadsProvisioning, thenProvisioned. TheIDcolumn holds<CLUSTER_ID>, which REST calls use.STATUSMeaning ProvisioningNVKE is requesting machines from NICo and forming the cluster. ProvisionedThe first control-plane node ran kubeadm initand the Container Network Interface (CNI) plugin is installed. The other nodes join after this. This is provisioning state, not certificate-maintenance health.ProvisioningFailedProvisioning stopped. The provisioningcondition's message gives the cause.UpdatingA day-2 operation is running, a failed certificate renewal retained the cluster mutation lock ( conditions.updateInProgress.type=certificate_renewalwithconditions.certificateRenewal.state=failed), or a failed etcd key rotation retained it (conditions.updateInProgress.type=etcd_key_rotationwithconditions.etcdKeyRotation.state=failed, orstate=runningwhile the workflow named byconditions.etcdKeyRotation.workflowIDis no longer open). A retained lock needs operator recovery, not just waiting forProvisioned: ownership-checked recovery for a certificate renewal, or phase-aware recovery for an etcd key rotation.Upgrading,RecyclingA day-2 operation is running. UpdateFailedThe last day-2 operation failed. DeletingThe cluster is being deleted. Inspect
conditions.certificateRenewal.state, itsphaseandmessage, andnextCertRenewalDueeven onProvisionedclusters. A failed renewal that released its lock can still showProvisioned; automatic retry waits for the due time and the one-hour failure backoff. Atwo-control-plane-votersrefusal also requirescontrolPlaneConfig.desiredCountof at least3. See Check workload clusters and node pools for the checks and Status and failure handling for recovery. -
If the status stays
Provisioning, read the condition messages.nvkectl get clusters <WORKLOAD_CLUSTER> -o yamlEach provisioning condition under
conditionshas astatus, alastTransitionTimeand amessage. NVKE keeps waiting for a control-plane machine that does not become ready, so a NICo instance type without capacity shows as a cluster that stays inProvisioning. See Troubleshoot. -
Check the node pools.
nvkectl get nodepools --cluster <WORKLOAD_CLUSTER>Each pool's
STATUSreadsProvisionedonce the cluster is provisioned. Its nodes can still be joining.
Verify
-
List the cluster's nodes and their Kubernetes readiness.
curl -s "http://<MANAGEMENT_ADDRESS>:30080/api/nodes?clusterName=<WORKLOAD_CLUSTER>" \ | jq -r '.nodes[] | [.name, .controlPlane, .conditions.kubernetesReady.status] | @tsv'The output has one line for each control-plane node and each worker, and every line ends in
True. The count of control-plane lines (truein the second column) equalscontrolPlaneConfig.desiredCount. -
Check the cluster's status.
nvkectl get clusters <WORKLOAD_CLUSTER>STATUSreadsProvisioned.
Change cluster settings after creation
You change three cluster settings after creation with nvkectl patch cluster, which sends a patch document in YAML or JSON to PATCH /api/clusters/<CLUSTER_ID>. Fields you leave out keep their values.
| Field | Effect | Reversible |
|---|---|---|
enableEtcdEncryption: true |
Encrypts etcd at rest on a cluster created with etcdEncrypted: false. |
No. false is rejected. |
enableOidc: true |
Configures the cluster's Kubernetes API server to accept OIDC tokens for the NVKE management plane's identities. | No. false is rejected. |
enableCPNodeRecycling |
When true, control-plane upgrades and configuration changes replace control-plane nodes automatically. When false, the default, nodes that need replacement are reported as pending and wait for you. |
Yes. |
enableEtcdEncryption and enableOidc start a rollout across the control-plane nodes, one node at a time. Both require a cluster in Provisioned state. Only one operation runs at a time: while one runs, STATUS reads Updating and every other PATCH returns 409 with a message that names the running operation. You cannot combine the two in one request, or combine either with a Kubernetes version change.
-
Apply the change. For example, to turn on etcd encryption:
nvkectl patch cluster <WORKLOAD_CLUSTER> --patch 'enableEtcdEncryption: true'The command prints
Cluster "<WORKLOAD_CLUSTER>" patched (id: <CLUSTER_ID>)and returns before the rollout finishes. Use--patch 'enableOidc: true'or--patch 'enableCPNodeRecycling: true'for the other settings, or--patch-fileto read the document from a file. -
Wait for
STATUSto return toProvisioned.nvkectl get clusters <WORKLOAD_CLUSTER>After etcd encryption,
nvkectl get clusters <WORKLOAD_CLUSTER> -o yamlshowsetcdEncrypted: true. IfSTATUSreadsUpdateFailed, send the same patch again to retry.
enableOidc requires Kubernetes 1.30.0 or later and turns on the shared OIDC provider that the nvkeOIDCAuth chart values configure. The install in Run NVKE end to end on one machine configures it for the management cluster's SPIRE server and sets nvkeOIDCAuth.enabled to false, so new clusters start without it and the enableOidc patch is accepted. Try enableOidc on one cluster before you rely on it. Configure OIDC for workload clusters describes the shared provider, and the fleet-wide providers that a cluster gets only at creation.
The same PATCH also takes controlPlaneKubernetesVersion, to upgrade the control plane, as described in Upgrade a workload cluster's Kubernetes version, and controlPlaneConfig, to change the control-plane node count or release. An upgrade, a node count above one and a release change each require controlPlaneVIP or controlPlaneEndpoint by default.
A dedicated development NVKE controller can set
allowControlPlaneWithoutVIP: true in its controller configuration file.
For a Helm installation, set the chart value of the same name. This setting
permits creation, scale-up, upgrades, rollout, remediation and node replacement
without a VIP or a controlPlaneEndpoint for every cluster the controller
manages. The default is false.
API requests and responses keep their existing format.
Without a VIP or a controlPlaneEndpoint, kubeadm uses the initializing
node's IP as the API endpoint.
Replacing that node can break API access and later node joins. This override
does not provide endpoint failover. Quorum, health and deletion protections
still apply. A supplied VIP still receives normal address validation.
After setting allowControlPlaneWithoutVIP back to false and restarting
the NVKE controller, the controller blocks new restricted API requests and
new no-VIP surge creation. It does not cancel accepted rollout work.
A rollout that passes the existing health checks can still
enqueue teardown when surge capacity is already satisfied or
controlPlaneConfig.maxSurge is 0.
To pause new surge and teardown actions in control-plane rollouts, set the
cluster's enableCPNodeRecycling field to false:
nvkectl patch cluster <WORKLOAD_CLUSTER> --patch 'enableCPNodeRecycling: false'
Already-enqueued teardown workflows may still finish.
Control-plane node removal
Before NVKE removes a control-plane node, it evicts the pods of the node with the eviction rules in Manage node pools. If the drain cannot complete, NVKE tries again within 5 minutes after each failed attempt, with no time limit. For example, a PodDisruptionBudget can refuse an eviction. NVKE does not wait for a pod that is more than 5 minutes after its deletion timestamp.
NVKE force-deletes the pods of a control-plane node only if one of these is true:
- The delete request has
"forceUnreachable": true. - NVKE accepted a delete request, a scale-down or a remediation for the node. When NVKE accepted or started the removal, the
kubernetesReadyornodeAgentReadycondition of the node was notTrue. - The removal of the node stopped, and NVKE started it again.
- An etcd key rotation removes the node because the node is lost.
In these removals, NVKE deletes all pods on the node if their eviction does not complete in 100 seconds or stops because of an error.
Delete a workload cluster
-
Delete the cluster.
nvkectl delete cluster <WORKLOAD_CLUSTER>The command asks for no confirmation. It prints
Cluster "<WORKLOAD_CLUSTER>" deletion started (id: <CLUSTER_ID>)and returns. The REST equivalent isDELETE /api/clusters/<CLUSTER_ID>, which returns202. You can delete a cluster in any state, including while it provisions or upgrades. -
Wait for the cluster to disappear.
nvkectl get clustersThe cluster shows
Deletinguntil teardown finishes, then is no longer listed.
Deletion removes the node pools and nodes, the cluster's etcd encryption key, its Cluster API objects and its records on the management plane. For each node, NVKE makes a best-effort kubeadm reset, then deletes the node's Cluster API machine, which releases the NICo instance back to NICo. A failed reset does not stop the deletion. The cluster stays listed until every machine is released. What happens to the hardware after release is decided by NICo, not NVKE.
If teardown fails, the cluster stays in Deleting and its deleting condition message starts with Workflow failed:. See Troubleshoot.
Next steps
- Access a workload cluster to get the kubeconfig and hand the cluster to the customer.
- Manage node pools to add, scale or remove node pools.