kidle

module
v0.0.0-...-5544660 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0

README

kidle

Build Status License Contributor Covenant

Kidle is a kubernetes idling feature to automatically idle or wakeup workloads.

Main features:

  • idle and wakeup Deployments, StatefulSets and CronJobs
  • idle and wakeup at specified time
  • shutdown after some idle time
  • automatic wakeup on call
  • fancy UI

Demo

asciicast

Demo commands:

# let's create a deployment
kubectl create deploy --image=stefanprodan/podinfo podinfo

# create an IdlingResource for that deployment
bat 01-manual-idlingresource.yaml
kubectl apply -f 01-manual-idlingresource.yaml

# display kidle status
kubectl get idlingresources

# idle manually the deployment then watch the result
kubectl edit ir/podinfo
kubectl get ir,deploy

# use kidlectl to idle or wakeup more easily
kidlectl wakeup podinfo
kubectl get ir,deploy
 

Deployment

You can deploy kidle using the deploy target. It expects a cluster-admin role and creates a kidle-system namespace. You can select the release you want by setting the TAG= as an environment variable.

$ TAG=main make deploy
$ kubectl get deploy -n kidle-system
NAME                       READY   UP-TO-DATE   AVAILABLE   AGE
kidle-controller-manager   1/1     1            1           13d

To uninstall:

make undeploy

If you want to see the kubernetes manifests before applying:

make deploy-view

Documentation

Here is a user guide.

Docker

The operator builds are published to docker.

Following tags are maintained:

  • vx.y.z: Images that are build from the tagged versions within Github. Always unique.
  • vx.y: Represents latest .z revision.
  • vx: Represents latest .y.z revision.
docker pull kidledev/kidle-operator:<tag>

Contact

You can find me on the kidle-dev slack

Directories

Path Synopsis
cmd
kidlectl Module
pkg
api/v1beta1
Package v1beta1 contains API Schema definitions for the kidle v1beta1 API group +kubebuilder:object:generate=true +groupName=kidle.kidle.dev
Package v1beta1 contains API Schema definitions for the kidle v1beta1 API group +kubebuilder:object:generate=true +groupName=kidle.kidle.dev

Jump to

Keyboard shortcuts

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