[Feature]: Add Container Lifecycle Hooks (PostStart,PreStop) for containers in the Cluster CRD #4405
Open
2 tasks done
Labels
triage
Pending triage
Is there an existing issue already for this feature request/idea?
What problem is this feature going to solve? Why should it be added?
I need Container Lifecycle Hooks for the containers running in the Cluster. This will help me delay the pod termination in case of Kubernetes node upgrade on AWS EKS by creating a custom container image and adding a draining script for connections.
Describe the solution you'd like
The containerLifecycleoption of a Kubernetes container inside of pod could be implemented. See https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers
It could be configured in the YAML file in the spec section:
By default, this field should no be set.
Describe alternatives you've considered
No alternative.
Additional context
No response
Backport?
No
Are you willing to actively contribute to this feature?
Yes
Code of Conduct
The text was updated successfully, but these errors were encountered: