I created EKS kubernetes cluster and set min and m...
# kubernetes
I created EKS kubernetes cluster and set min and max cluster size but cluster does not autoscale. In this article: https://www.pulumi.com/blog/easily-create-and-manage-aws-eks-kubernetes-clusters-with-pulumi/#:~:text=Launching%20worke[…]0to%20join%20the%20cluster it says that autoscaler is created which is true but it is not doing anything. Do I need to do anything else to enable cluster node autoscaling? Thanks in advance 🙏
Copy code
const cluster = new eks.Cluster('cluster', {
  name: 'eks-cluster',
  vpcId: vpc.id,
  publicSubnetIds: vpc.publicSubnetIds,
  privateSubnetIds: vpc.privateSubnetIds,
  desiredCapacity: 2,
  minSize: 1,
  maxSize: 3
If you haven't then you will need to deploy the Cluster Autoscaler: https://docs.aws.amazon.com/eks/latest/userguide/autoscaling.html
Oh, thanks! I was suspecting that is a case but was hoping that is automatically created when I set min and max cluster options. Is there any pulumi example of deploying cluster autoscaler?
You can use the
module to deploy the CAS yaml to the cluster: https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/
What about aws roles and policies? I also need to attach those to eks cluster, right?
🙌 1