Skip to content

Commit 12623b1

Browse files
committed
Update cluster-autoscaler configuration
Signed-off-by: Manuel Alejandro de Brito Fontes <[email protected]>
1 parent 4fe145c commit 12623b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/charts/cluster-autoscaler.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ export class ClusterAutoscaler extends cdk.Construct {
3030
extraArgs: {
3131
'stderrthreshold': 'info',
3232
'v': 2,
33+
'scale-down-utilization-threshold': 0.2,
3334
'skip-nodes-with-local-storage': false,
34-
'scale-down-utilization-threshold': 0.3,
3535
'skip-nodes-with-system-pods': false,
3636
'expander': 'least-waste',
37-
// 'cordon-node-before-terminating': true,
37+
'balance-similar-node-groups': true,
38+
'node-group-auto-discovery': `asg:tag=k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/${cluster.clusterName}`,
39+
//TODO: enable after next release 'cordon-node-before-terminating': true,
3840
}
3941
},
4042
});

0 commit comments

Comments
 (0)