Currently there is an issue when using sidecars (like istio-proxy) with jobs - they don't exit when the job has completed.
This project will monitor those pods and then send a kill
signal to the
sidecar containers causing them to exit and the job to be marked
as succeeded.
It will monitor all pods in the cluster, and terminate the sidecars if the following criteria has been met:
- The pod was created by a job
- The pod's non-sidecar containers have exited with exit code 0
Terminate occurs by executing into the sidecar container and
running kill 1
.
git clone https://github.com/zachomedia/kubernetes-sidecar-terminator.git
kubectl apply -f manifests/