awslabs / amazon-eks-serverless-drainer Goto Github PK
View Code? Open in Web Editor NEWAmazon EKS node drainer with AWS Lambda.
License: MIT No Attribution
Amazon EKS node drainer with AWS Lambda.
License: MIT No Attribution
I checked the config of sam, found that cloudwatch listen to the events EC2 Spot Instance Interruption Warning
and EC2 Instance-terminate Lifecycle Action
, but after decreasing the desired capacity of my eks autoscaling group, looks like there is no such two events fired
as I listen to all event of ec2, and forward all event to my email box, I did receive some other events but EC2 Spot Instance Interruption Warning
and EC2 Instance-terminate Lifecycle Action
in my email
make sam-logs-tail
got error botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the FilterLogEvents operation: The specified log group does not exist.
any idea why there is no event EC2 Spot Instance Interruption Warning
and EC2 Instance-terminate Lifecycle Action
fired?
Code parses the cluster name from ec2 instance tag according to this line - https://github.com/awslabs/amazon-eks-serverless-drainer/blob/master/main.sh#L37-L38
But when setting kubeconfig, it's using cluster_name
variable which is different from the parsed cluster name (input_cluster_name
) - https://github.com/awslabs/amazon-eks-serverless-drainer/blob/master/main.sh#L41
By default, when you deploy with a click of a button, it doesn't set the cluster_name
variable at all. And now I am wondering how is this expected to work?
Also note: The lambda function itself doesn't handle errors well and makes everything look like it has worked
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.