Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilic/kube-start-stop
Schedule Scaling of Kubernetes Resources
https://github.com/lilic/kube-start-stop
Last synced: about 2 months ago
JSON representation
Schedule Scaling of Kubernetes Resources
- Host: GitHub
- URL: https://github.com/lilic/kube-start-stop
- Owner: lilic
- License: apache-2.0
- Created: 2018-04-24T21:19:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T07:59:08.000Z (over 6 years ago)
- Last Synced: 2024-10-14T13:20:17.359Z (2 months ago)
- Language: Go
- Homepage:
- Size: 3.96 MB
- Stars: 133
- Watchers: 5
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```