Skip to content

Commit f495c6b

Browse files
committed
fixup! docs: Add details about required labels
1 parent f83fd07 commit f495c6b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/content/addons/cluster-autoscaler.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ To deploy the addon via `ClusterResourceSet` replace the value of `strategy` wit
5252

5353
## Scale from zero
5454

55+
{{% alert title="Required Cluster labels" color=warning %}}
56+
CAREN support for scale from zero currently relies on specific labels on the `Cluster` resource in order for Cluster
57+
Autoscaler RBAC to be correctly configured. Ensure that your `Clusters` have the appropriate `cluster.x-k8s.io/provider`
58+
label as follows:
59+
60+
- CAPA: `cluster.x-k8s.io/provider: aws`
61+
- CAPX: `cluster.x-k8s.io/provider: nutanix`
62+
- CAPD: `cluster.x-k8s.io/provider: docker`
63+
{{% /alert %}}
64+
5565
CAREN deploys Cluster Autoscaler with appropriate permissions to enable scaling nodepools from zero. However, CAPI
5666
providers must implement functionality as described in the [autoscaling from zero proposal][Scale from zero status
5767
updates] in order for scaling from zero to be possible.
@@ -65,6 +75,8 @@ apiVersion: cluster.x-k8s.io/v1beta1
6575
kind: Cluster
6676
metadata:
6777
name: <NAME>
78+
labels:
79+
cluster.x-k8s.io/provider: <PROVIDER>
6880
spec:
6981
topology:
7082
variables:
@@ -96,6 +108,8 @@ apiVersion: cluster.x-k8s.io/v1beta1
96108
kind: Cluster
97109
metadata:
98110
name: <NAME>
111+
labels:
112+
cluster.x-k8s.io/provider: <PROVIDER>
99113
spec:
100114
topology:
101115
variables:

0 commit comments

Comments
 (0)