lab1: autoscaler min/max and capacity annotations on lab1-workers (Step 5)
kubectl diff against the live cluster shows only the six annotations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -159,9 +159,20 @@ metadata:
|
||||
capacity.cluster-autoscaler.kubernetes.io/maximum-pods: "110"
|
||||
```
|
||||
|
||||
They are part of `MachineDeployment/lab1-workers` in [configs/capi/lab1.yaml](../configs/capi/lab1.yaml);
|
||||
re-apply the file (the only diff is these annotations; `replicas` isn't in the manifest, so it
|
||||
stays as is):
|
||||
|
||||
```bash
|
||||
export KUBECONFIG=~/.kube/lab-mgmt.kubeconfig
|
||||
kubectl diff -f configs/capi/lab1.yaml # expect only the six annotations on lab1-workers
|
||||
kubectl apply -f configs/capi/lab1.yaml
|
||||
```
|
||||
|
||||
Capacity annotations are required for scale-from-zero because CAPMOX does not publish
|
||||
`status.capacity`. They must match the `ProxmoxMachineTemplate`; add `.../labels` and `.../taints`
|
||||
annotations if pods target the group by selector/toleration.
|
||||
annotations if pods target the group by selector/toleration. They have no effect until
|
||||
cluster-autoscaler runs (Step 6).
|
||||
|
||||
## Step 6 — cluster-autoscaler
|
||||
|
||||
|
||||
Reference in New Issue
Block a user