Node Resource
Frompkg/apis/management.cattle.io/v3/machine_types.go:62
Node Spec
Human-readable name for the node
Optional description of the node
Whether this node runs etcd (immutable)
Whether this node is a control plane node (immutable)
Whether this node is a worker node (immutable)
Reference to the node template used to provision this node
Reference to the node pool this node belongs to
Desired hostname for the node (immutable, required)
Taints to apply to the node
Whether the node should be unschedulable
Configuration for draining the node
Node Status
Current state conditions of the node
Name of the node in Kubernetes
Total resources requested on the node
Total resource limits on the node
Kubernetes node status information
Annotations applied to the node
Labels applied to the node
Node Conditions
Frompkg/apis/management.cattle.io/v3/machine_types.go:131
Node has been initialized
Node has been provisioned
Node configuration has been updated
Node is registered with Kubernetes
Node is ready to accept workloads
Node has been drained of workloads
List Nodes
Retrieve all nodes in a cluster:Filter Nodes
Filter by labels:Get Node
Retrieve a specific node:Response Example
Update Node
Update node configuration:Delete Node
Delete a node from the cluster:Node Actions
Cordon Node
Mark a node as unschedulable:Uncordon Node
Mark a node as schedulable:Drain Node
Drain all pods from a node:Node Pools
Frompkg/apis/management.cattle.io/v3/machine_types.go:165
Node pools define groups of nodes with identical configurations.
Node Pool Spec
Human-readable name for the node pool
Name of the cluster (immutable, required)
Prefix for generated hostnames (required)
Number of nodes in the pool (default: 1)
Nodes run etcd
Nodes are control plane nodes
Nodes are worker nodes
Reference to the node template (required)
Labels to apply to all nodes
Annotations to apply to all nodes
Taints to apply to all nodes
Drain nodes before deletion
Delete not-ready nodes after this duration (0 to disable)
Create Node Pool
Scale Node Pool
Update the quantity field:Node Templates
Frompkg/apis/management.cattle.io/v3/machine_types.go:17
Node templates define the configuration for provisioning nodes from a cloud provider.
Node Template Spec
Human-readable name for the template
Description of the template
Node driver name (immutable)
Reference to cloud credentials
Taints to apply to nodes created from this template
Create Node Template
Node Drivers
Frompkg/apis/management.cattle.io/v3/machine_types.go:278
Node drivers enable Rancher to provision nodes on different cloud providers.
Node Driver Spec
Public name shown in the UI (max 57 chars)
Short explanation of the driver
Location of the driver binary (required)
Whether the driver is built into Rancher
Whether the driver can provision clusters (required)
Expected checksum of the driver binary (md5, sha1, sha256, sha512)
List Node Drivers
Activate Node Driver
Deactivate Node Driver
Best Practices
Use Node Pools for Scaling
Use Node Pools for Scaling
Manage groups of similar nodes with node pools rather than individual nodes:
- Easier scaling
- Consistent configuration
- Automated replacement
Label Nodes Appropriately
Label Nodes Appropriately
Use labels to identify node characteristics:
node-role.kubernetes.io/worker=trueworkload-type=cpu-intensiveenvironment=production
Apply Taints for Dedicated Nodes
Apply Taints for Dedicated Nodes
Use taints to dedicate nodes for specific workloads:
- GPU nodes:
dedicated=gpu:NoSchedule - Database nodes:
dedicated=database:NoSchedule - High-priority workloads:
priority=high:PreferNoSchedule
Enable Drain Before Delete
Enable Drain Before Delete
Set
drainBeforeDelete: true on node pools to gracefully migrate workloads before node removal.Monitor Node Health
Monitor Node Health
Regularly check node conditions and resource usage:
- Watch for DiskPressure, MemoryPressure conditions
- Monitor resource allocation (requested vs allocatable)
- Set up alerts for node not-ready states
Node Autoscaling
For RKE2/K3s clusters using the provisioning API:Autoscaling requires the Kubernetes Cluster Autoscaler to be installed.
Next Steps
Workloads
Deploy applications to nodes
Clusters
Manage clusters
Node Scaling
Configure cluster autoscaling