Discover Packages
github.com/cloudscalerio/cloudscaler
module
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Nov 17, 2024
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Cloudscaler
Cloudscaler is a Kubernetes operator that scales cloud resources up or down using custom CRDs. It supports Kubernetes resources like deployments and cron jobs and aims to extend support to cloud resources like Compute Engine and Cloud SQL on GCP.
This project is inspired by kube-downscaler .
Getting Started
Installation via Helm
Install the Chart
helm install cloudscaler oci://ghcr.io/cloudscalerio/cloudscaler/cloudscaler --namespace cloudscaler-system
Create a Scaler Custom Resource (CR)
# Example: Downscales all deployments (excluding kube-system) to 0 from 19:00 to 21:00 (Paris time) daily.
apiVersion: cloudscaler.io/v1alpha1
kind: K8s
metadata:
name: k8s-sample
spec:
periods:
- time:
recurring: true
days:
- all
startTime: "19:00"
endTime: "21:00"
timezone: "Europe/Paris"
minReplicas: 0
maxReplicas: 10
type: "down"
Apply the Configuration
kubectl apply -f <scaler-CR-file.yaml>
Documentation
Full documentation is available here .
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.