In essence, eks-node-drainer is a dockerized lifecycled with a deployment manifest for Kubernetes.
eks-node-drainer is designed to run on AWS EKS as a daemonset and listen for state changes of cluster nodes. It allows you to gracefully handle EC2 scaling events.
The heavy lifting is all done by lifecycled.
eks-node-drainer allows the handler script to be specified in a config map in order to support custom draining logic without having to re-build the image. Simply replace the config map node-drainer included in node-drainer.yaml to supply your custom draining logic.
node-drainer.yaml. NOTE You need to supply values for AWS_REGION, LIFECYCLED_SNS_TOPIC and LIFECYCLED_CLOUDWATCH_GROUP in the configmap.kubectl apply -f node-drainer.yaml
You may also use something like kustomize to merge/replace a generated configmap with the existing yaml.
Content type
Image
Digest
Size
21 MB
Last updated
almost 6 years ago
docker pull kristofferahl/eks-node-drainer