Skip to content

Commit 3948710

Browse files
authored
Merge pull request #8217 from elmiko/capi-readme-annotations
update cluster api provider readme
2 parents 67da65c + 9987e76 commit 3948710

File tree

1 file changed

+11
-0
lines changed
  • cluster-autoscaler/cloudprovider/clusterapi

1 file changed

+11
-0
lines changed

cluster-autoscaler/cloudprovider/clusterapi/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ autoscaler about the sizing of the nodes in the node group. At the minimum,
214214
you must specify the CPU and memory annotations, these annotations should
215215
match the expected capacity of the nodes created from the infrastructure.
216216

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+
217222
For example, if my MachineDeployment will create nodes that have "16000m" CPU,
218223
"128G" memory, "100Gi" ephemeral disk storage, 2 NVidia GPUs, and can support
219224
200 max pods, the following annotations will instruct the autoscaler how to
@@ -290,6 +295,12 @@ metadata:
290295
capacity.cluster-autoscaler.kubernetes.io/taints: "key1=value1:NoSchedule,key2=value2:NoExecute"
291296
```
292297

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+
293304
#### Per-NodeGroup autoscaling options
294305

295306
Custom autoscaling options per node group (MachineDeployment/MachinePool/MachineSet) can be specified as annoations with a common prefix:

0 commit comments

Comments
 (0)