Update cluster-autoscaler.md

A label is missing in the Cluster Autoscaler YAML configuration.
This commit is contained in:
Febrian
2025-04-23 14:50:47 +07:00
committed by Adriano Pezzuto
parent 4595b79ddd
commit 728ac21ffa

View File

@@ -64,6 +64,7 @@ Such labels must be set on the workload cluster, in the `Cluster` and `MachineDe
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
labels:
cluster.x-k8s.io/cluster-name: sample
# Cluster Autoscaler labels
autoscaling: enabled
@@ -124,4 +125,4 @@ spec:
Apply the workload to the Tenant cluster and simulate the load spike by increasing the replicas. The Cluster Autoscaler should scale up the cluster to accommodate the workload. Cooldown time must be configured properly on a cluster basis.
!!! warning "Possible Resource Wasting"
With Cluster Autoscaler, new machines are automatically created in a very short time, ending up with some up-provisioning and potentially wasting resources. The official Cluster Autosclaler documentation must be understood to provide correct values according to the infrastructure and provisioning times.
With Cluster Autoscaler, new machines are automatically created in a very short time, ending up with some up-provisioning and potentially wasting resources. The official Cluster Autosclaler documentation must be understood to provide correct values according to the infrastructure and provisioning times.