question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-eks): Exposing the Auto Scaling Group from a Nodegroup

See original GitHub issue

Description

The idea of this feature request is to add to EKS Construct Library the ability of exposing the resulting Auto Scaling Group created for a EKS Managed Node Group

Use Case

Enable Interacting with the resulting Auto Scaling Group created by addNodegroupCapacity method

Proposed Solution

N/A

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yws-sscommented, Apr 28, 2022

@pahud Could you take a look and help reopen this ticket?

1reaction
yws-sscommented, Apr 28, 2022

Hello team,

There have a scenario need this feature. Per Cluster Autoscaler document mentioned, if the node group want to scale up from 0, we need to add the resources tags on the auto scaling group to let Cluster Autoscaler discover them [1]. Such as:

Key: k8s.io/cluster-autoscaler/node-template/resources/$RESOURCE_NAME
Value: 5
Key: k8s.io/cluster-autoscaler/node-template/label/$LABEL_KEY
Value: $LABEL_VALUE
Key: k8s.io/cluster-autoscaler/node-template/taint/$TAINT_KEY
Value: NoSchedule

Base on current “NodeGroup” construct [2], we could not apply tags from it because managed node group tags currently cannot bring to auto scaling group. Also, “NodeGroup” construct would not return any auto scaling group information which could let us use other function such as “Tags” [3] to directly add tag to auto scaling group.

Currently, eksctl use AWS API at the backend to propagate the managed node group to auto scaling group [4]. I wonder to know could CDK implement the same thing at the backend?

[1] https://docs.aws.amazon.com/eks/latest/userguide/autoscaling.html [2] https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-eks.Nodegroup.html [3] https://docs.aws.amazon.com/cdk/v2/guide/tagging.html [4] https://github.com/weaveworks/eksctl/pull/5002

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autoscaling - Amazon EKS - AWS Documentation
Cluster Autoscaler attempts to scale up the Amazon EC2 Auto Scaling group matching the name p3-node-group . If this operation doesn't succeed within...
Read more >
Configure Autoscaling - Amazon EKS Workshop
The Kubernetes Cluster Autoscaler automatically adjusts the number of nodes in your cluster based on the resources required and execute the jobs.
Read more >
AWS EKS - How to Scale Your Cluster | Pulumi Blog
Automatically Managed Node Groups​​ Managed Node Groups will automatically scale the EC2 instances powering your cluster using an Auto Scaling ...
Read more >
Cluster-Autoscaler - EKS Best Practices Guides
Keeping your EC2 Auto Scaling Group configurations consistent with these assumptions will minimize undesired behavior. Ensure that: Each Node in a Node Group...
Read more >
Is there a way to prevent an EKS NodeGroup (EC2 ...
LoadBalancer under the hood uses NodePort service which is exposed on ALL cluster nodes regardless of EKS node group they belong to.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found