Cluster Resource
Frompkg/apis/management.cattle.io/v3/cluster_types.go:97
Cluster Spec
Human-readable name displayed in the Rancher UI
Optional description of the cluster’s purpose
Desired Kubernetes version (for RKE2/K3s clusters)
Configuration for RKE2 clusters. See RKE2 Configuration
Configuration for K3s clusters
Configuration for imported clusters
Base64-encoded kubeconfig for cluster access
Azure Kubernetes Service configuration
Amazon Elastic Kubernetes Service configuration
Google Kubernetes Engine configuration
Enable project network isolation using Kubernetes NetworkPolicy
Environment variables for the cluster agent
Customization options for cluster agent deployment
Customization options for fleet agent deployment
Name of the Pod Security Admission configuration template
Cluster Status
Current state conditions of the cluster
Cluster driver type:
imported, rancherKubernetesEngine, rke2, k3s, AKS, EKS, GKECloud provider:
aws, azure, gcp, vsphere, etc.Kubernetes API server endpoint URL
Base64-encoded CA certificate for the cluster
Kubernetes version information
Total number of nodes in the cluster
Total cluster capacity (CPU, memory, pods)
Allocatable resources in the cluster
Container image used for the cluster agent
Cluster Conditions
Frompkg/apis/management.cattle.io/v3/cluster_types.go:39
Cluster is ready to serve API requests (healthy when true)
Cluster provisioning is in progress
Cluster infrastructure has been provisioned
Cluster configuration has been updated
Cluster agent has been deployed successfully
All nodes have sufficient disk space
All nodes have sufficient memory
Create Cluster
Create a new Kubernetes cluster.RKE2 Cluster
Import Existing Cluster
List Clusters
Retrieve all clusters:Filter Clusters
Filter by labels:Get Cluster
Retrieve a specific cluster:Response Example
Update Cluster
Update cluster configuration:Delete Cluster
Delete a cluster:Cluster Actions
Generate Kubeconfig
Generate a kubeconfig file for cluster access:Base64-encoded kubeconfig file content
Backup ETCD
Create an ETCD snapshot:Restore from ETCD Backup
Restore cluster from an ETCD snapshot:Rotate Certificates
Rotate cluster certificates:Cluster Drivers
Frompkg/apis/management.cattle.io/v3/cluster_types.go:76
imported
Cluster imported from existing infrastructure
local
Local cluster running Rancher
rancherKubernetesEngine
Legacy RKE1 cluster (deprecated)
rke2
RKE2 cluster
k3s
K3s lightweight cluster
AKS
Azure Kubernetes Service
EKS
Amazon Elastic Kubernetes Service
GKE
Google Kubernetes Engine
Best Practices
Use Descriptive Names
Use Descriptive Names
Set meaningful
displayName and description fields to identify cluster purpose and environment.Monitor Cluster Conditions
Monitor Cluster Conditions
Regularly check cluster conditions to ensure health and catch issues early.
Enable Network Policies
Enable Network Policies
Set
enableNetworkPolicy: true for production clusters to enable project isolation.Configure Resource Quotas
Configure Resource Quotas
Define resource quotas at the project level to prevent resource exhaustion.
Regular Backups
Regular Backups
Schedule automated ETCD backups for disaster recovery.
Next Steps
Projects
Create multi-tenant projects
Nodes
Manage cluster nodes
Workloads
Deploy applications