Cluster Autoscaler
This flavor adds auto-scaling via Cluster Autoscaler.
Specification
Supported Control Plane | CNI | Default OS | Installs ClusterClass | IPv4 | IPv6 |
---|---|---|---|---|---|
kubeadm, k3s, rke2 | Cilium | Ubuntu 22.04 | No | Yes | Yes |
Prerequisites
Quickstart completed
Usage
-
Set up autoscaling environment variables
We recommend using Cluster Autoscaler with the Kubernetes control plane ... version for which it was meant.
export CLUSTER_AUTOSCALER_VERSION=v1.29.0 # Optional: If specified, these values must be explicitly quoted! export WORKER_MACHINE_MIN='"1"' export WORKER_MACHINE_MAX='"10"'
-
Generate cluster yaml
clusterctl generate cluster test-cluster \ --kubernetes-version v1.29.1 \ --infrastructure linode-linode \ --flavor <controlplane>-cluster-autoscaler > test-cluster.yaml
-
Apply cluster yaml
kubectl apply -f test-cluster.yaml