You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Note: the annotations will be defined in the cluster autoscaler, not in cluster-api._
282
283
283
284
**Node Labels and Taints**
284
285
285
-
When a user would like to signal that the node being created from a MachineSet or
286
-
MachineDeployment will have specific taints or labels on it, they can use the following
287
-
annotations to specify that information.
286
+
Users may specify node labels and taints through the following mechanisms:
287
+
288
+
1.**MachineSet or MachineDeployment labels** - Labels with the `node.cluster.x-k8s.io/` prefix in `spec.template.spec.metadata.labels` will be propagated to Nodes per CAPI's [metadata propagation](https://cluster-api.sigs.k8s.io/reference/api/metadata-propagation) behavior.
289
+
290
+
```
291
+
kind: <MachineSet or MachineDeployment>
292
+
spec:
293
+
template:
294
+
spec:
295
+
metadata:
296
+
labels:
297
+
node.cluster.x-k8s.io/key1: "value1"
298
+
node.cluster.x-k8s.io/key2: "value2"
299
+
```
300
+
301
+
2.**Capacity annotations** - For explicit control or overrides:
0 commit comments