Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify `--asg-access` in config file with eksctl?

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.yml

But getting this error:

[✖]  cannot use --asg-access when --config-file/-f is set

Is 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.

like image 551
Pierre B. Avatar asked Aug 02 '19 11:08

Pierre B.


People also ask

What does Eksctl create Iamserviceaccount do?

The eksctl create iamserviceaccount command supports --include and --exclude flags (see this section for more details about how these work). And the eksctl delete iamserviceaccount command supports --only-missing as well, so you can perform deletions the same way as nodegroups.

What is the use of Eksctl?

eksctl – A command line tool for working with EKS clusters that automates many individual tasks.

How can I find owner of EKS cluster?

To identify the cluster creator, search for the CreateCluster API call in AWS CloudTrail, and then check the userIdentity section of the API call.


1 Answers

You can enable autoscaling within config file without passing asg-access flag, i.e.

iam:
  withAddonPolicies:
    autoScaler: true

Example

Hope this will help

like image 158
A_Suh Avatar answered Nov 23 '22 23:11

A_Suh