-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks to run scripts at different stages #66
Comments
Hi @challapradyumna A simple script implementation might be a bit problematic since this is a service and not a controller, and there is no custom resource - so the only interface are flags passed in, also, allowing arbitrary script execution might have security implications. I think one possible approach to have something secure and configurable that answers this use case is to use SSM send-command. User can then specify a specific pre-created script to execute via flag e.g. This would require users to integrate SSM on their AMIs, but would be easy to implement and relatively more secure, since the script is pre-created. WDYT? |
At least for our use-case, it's about muting the instance on datadog, other third-party services nothing on the instance. Yes and No with the SSM integration makes sense to do it but becomes a pre-requisite for anyone to use this feature. I'm thinking more on the lines of calling a webhook or kicking off a job inside the cluster itself sending the instance details as a parameter. |
Are you referring to running this webhook inside the lifecycle-manager pod, or from the terminating instance? |
One other option would be to label the node (or add some annotation) when it is about to be drained and terminated. Most Kubernetes aware tools allow for configuration based on that. Would that help? |
I'm looking more like a flag e.g: |
FEATURE REQUEST:
What happened:
Draining & removing nodes from ASG also requires us to update the monitoring systems to stop monitoring the node and a few other things before the node can be safely removed from circulation
What you expected to happen:
If there were flags where shell scripts could be tagged along with lifecycle manager at different stages that would make lifecycle-manager extensible for various use cases.
The text was updated successfully, but these errors were encountered: