Giter Site home page Giter Site logo

pcostesi / kubernetes-sidecar-terminator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zachomedia/kubernetes-sidecar-terminator

0.0 1.0 0.0 54 KB

Monitor Kubernetes pods created by jobs and terminate the sidecars when the job completes

License: MIT License

Go 96.86% Dockerfile 3.14%

kubernetes-sidecar-terminator's Introduction

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/

kubernetes-sidecar-terminator's People

Contributors

zachomedia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.