The base of this repo was originally forked from github.com/trstringer/k8s-controller-core-resource
This is a custom Kubernetes controller for the purpose of watching running pods, and sending a SIGTERM to sidecar containers when the "main" application container has exited (and the sidecars are the only non-terminated containers).
This is a response to kubernetes/kubernetes#25908.
- Deploy the controller into your cluster.
- Add the
nrmitchi.com/sidecars
annotation to your pods, with a comma-seperated list of sidecar container names.