cabrelkemfang / dailyclean

Save The planet by auto turn off your pods on kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DailyClean

workflow Code Smells Docker API Docker JOB

DailyClean

About

Daily clean is all you to turn on or off automatically or manually all your pods your kubernetes namespace. Save the planet with DailyClean. Daily clean only use kubernetes native API.

DailyClean Automation

Getting Started

To test dailyclean on your local machine by using kubernetes with Docker Desktop, please use these commands:

git clone https://github.com/AxaGuilDEv/dailyclean.git
cd dailyclean/demo
kubectl create namespace license-preproduction
kubectl config set-context --current --namespace=license-preproduction
# Create a custom service account
kubectl apply -f dailyclean-serviceaccount.yml
# Install dailyclean for the dailyclean service account
kubectl apply -f deployment-dailyclean.yml
# Install three instances of kubernetes-bootcamp
kubectl apply -f deployment-others.yml
# Install MySql
kubectl apply -f deployment-mysql.yml

Now, open your favorite browser and enter the url of dailyclean-api service : http://localhost:30001

Enjoy dailyclean !!!!

How Does It Work

  • Daily clean use native kubernetes API, it works with any kubernetes projects. DailyClean is a pod that have to be install in your namespace. It create cron job that start or stop your pods.
  • API is in native GraalVM so it is lightweight.
  • User interface is in React/Javascript.

Contribute

Authors

The awesome team :

About

Save The planet by auto turn off your pods on kubernetes

License:MIT License


Languages

Language:Java 53.5%Language:JavaScript 37.2%Language:Python 3.6%Language:Dockerfile 3.1%Language:HTML 1.1%Language:SCSS 1.0%Language:MDX 0.6%