kubernetes-sidecar-terminator

command module
v0.0.0-...-ae4ad94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 1 Imported by: 0

README

Why does this exist?

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.

How does it work?

It will monitor all pods in the cluster, and terminate the sidecars if the following criteria has been met:

  1. The pod was created by a job
  2. The pod's non-sidecar containers have exited with exit code 0

Terminate occurs by executing into the sidecar container and running kill 1.

Getting started

  1. git clone https://github.com/zachomedia/kubernetes-sidecar-terminator.git
  2. kubectl apply -f manifests/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL