@@ -214,6 +214,11 @@ autoscaler about the sizing of the nodes in the node group. At the minimum,
214
214
you must specify the CPU and memory annotations, these annotations should
215
215
match the expected capacity of the nodes created from the infrastructure.
216
216
217
+ > Note: The scale from zero annotations will override any capacity information
218
+ > supplied by the Cluster API provider in the infrastructure machine templates.
219
+ > If both the annotations and the provider supplied capacity information are
220
+ > present, the annotations will take precedence.
221
+
217
222
For example, if my MachineDeployment will create nodes that have "16000m" CPU,
218
223
"128G" memory, "100Gi" ephemeral disk storage, 2 NVidia GPUs, and can support
219
224
200 max pods, the following annotations will instruct the autoscaler how to
@@ -290,6 +295,12 @@ metadata:
290
295
capacity.cluster-autoscaler.kubernetes.io/taints: "key1=value1:NoSchedule,key2=value2:NoExecute"
291
296
` ` `
292
297
298
+ > Note: The labels supplied through the capacity annotation will be combined
299
+ > with the labels to be propagated from the scalable Cluster API resource.
300
+ > The annotation does not override the labels in the scalable resource.
301
+ > Please see the [Cluster API Book chapter on Metadata propagation](https://cluster-api.sigs.k8s.io/reference/api/metadata-propagation)
302
+ > for more information.
303
+
293
304
# ### Per-NodeGroup autoscaling options
294
305
295
306
Custom autoscaling options per node group (MachineDeployment/MachinePool/MachineSet) can be specified as annoations with a common prefix :
0 commit comments