Cluster Autoscaler

This flavor adds auto-scaling via Cluster Autoscaler.

Specification

Control PlaneCNIDefault OSInstalls ClusterClassIPv4IPv6
KubeadmCiliumUbuntu 22.04NoYesNo

Prerequisites

Quickstart completed

Usage

  1. Set up autoscaling environment variables

    We recommend using Cluster Autoscaler with the Kubernetes control plane ... version for which it was meant.

    -- Releases ยท kubernetes/autoscaler

    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"'
    
  2. Generate cluster yaml

    clusterctl generate cluster test-cluster \
        --kubernetes-version v1.29.1 \
        --infrastructure linode-linode \
        --flavor cluster-autoscaler > test-cluster.yaml
    
  3. Apply cluster yaml

    kubectl apply -f test-cluster.yaml