I am trying to create a Kubernetes on AWS EKS cluster using eksctl with autoscaling enabled using proper IAM permissions. As per the documentation:
You can create a cluster (or nodegroup in an existing cluster) with IAM role that will allow use of cluster autoscaler:
eksctl create cluster --asg-access
I am trying to run
eksctl create cluster --asg-access -f myconfig.ymlBut getting this error:
[✖]  cannot use --asg-access when --config-file/-f is setIs their a way to use --asg-access within the config file? I try to look for a related config in the config file schema doc to no avail.
You can enable autoscaling within config file without passing asg-access flag, i.e.
iam:
  withAddonPolicies:
    autoScaler: trueHope this will help