kube-start-stop

command module
v0.0.0-...-1d7b3b2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

README

kube-start-stop

Schedule Scaling of Kubernetes Resources.

Automatically start and stop Kubernetes resources in the namespace. Schedule your resources to automatically scale down during a desired time period, e.g. scale down your dev workloads during the weekend.

Usage

Deploy controller:

  kubectl apply -f manifests/ 

Example manifest file:

apiVersion: scheduler.io/v1alpha1
kind: Schedule
metadata:
  name: schedule
  labels:
    schedule: weekly-dev
spec:
  schedules:
  - replicas: 0
    selector: my-deployment
    start:
      day: Monday 
      time:
        hour: 16 
        minute: 30
    stop:
      day: friday
      time:
        hour: 8
        minute: 10

After filling out the manifest file with the desired schedule, you just have to apply that your cluster that is running the kube-start-stop controller:

  kubectl apply -f example.yml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
apis/schedule/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/schedule/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/schedule/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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