Categorygithub.com/performl/hibernate
repository
1.0.0
Repository: https://github.com/performl/hibernate.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Build Status Go Report Card codecov GoDoc GitHub release

hibernate - simply save kubernetes resource costs

This is a simple tool to save kubernetes resource costs. It will scale down deployments and statefulsets to 0 replicas at a scheduled time every day. It will also scale up the deployments and statefulsets to the original number of replicas at a scheduled time every day/days of a week. Primarily built to seemlessly tackle spinning down dev environments at night and weekends.

Building From Source

This builds the go binary

git clone [email protected]:Performl/hibernate.git
cd hibernate
make bin

Installing Using Helm

TODO

Installing Using Kubernetes Manifests

TODO

Dependencies

# make sure hibernate namespace exists
kubectl create namespace hibernate

Usage (Standalone Binary)

# to use the binary to sleep resources manually using your local kubernetes config run:
./hibernate --mode=local --action=sleep

# to run in a kubernetes cluster run:
./hibernate --action=sleep

# to wake resources
./hibernate --mode=local --action=sleep
or
./hibernate --action=wake

Authors