Giter VIP home page Giter VIP logo

sunshine's Introduction

Sunshine

  • Had I not seen the sun, I could have borne the shade.                                    -- Siegfried Loraine Sassoon
  • An application that makes kubernetes clusters shine

Introduction

  1. After the pod restarts for the specified number of times, it will find its deployment and shut down
  2. If there is a running instance corresponding to the deployment, it will give up processing the deployment
  3. Reduce useless resource consumption, alarm information, and kube-scheduler scheduling pressure

Applicable scene

  • Suitable for multi-tenant messy kubernetes cluster

Supported kubernetes versions

  • kubernetes v1.17+

Use

kubectl apply -f https://raw.githubusercontent.com/huangjc7/sunshine/master/manifests/sunshine.yaml

Environment Variable

Environment Variable Description Default
POD_RESTART_NUMBER When the pod restart threshold is met, the deployment will be closed 50

Effect demonstration

  • Close restart the abnormal pod asciicast
  • If there is a running instance in the version controlled by the deployment, it will not be scaled down. asciicast

sunshine's People

Contributors

huangjc7 avatar

Stargazers

chenduo-GitHub avatar Sheldon-lu avatar liuzhuo avatar shanchui avatar  avatar Sooong avatar  avatar

Watchers

 avatar  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.