Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.94 KB

example.md

File metadata and controls

15 lines (13 loc) · 1.94 KB

Examples

Rule Description
rules-downscale-all-namespaces-except * Scale down Deployments, Statefulset pods to 0 replicas, Set HPA 1, Disable CronJob in all the namespaces except kube-system & istio-system between time 7pm to 7AM on weekdays and entire weekend Sat & Sun
rules-downscale-deployment * Scale down Deployments with labels: "app:deployment-1" in all the namespaces between 7pm to 7AM on weekdays and entire weekend Sat & Sun
rules-downscale-ss * Scale down Statefulset with labels: "app:ss-1" in all the namespaces between 7pm to 7AM on weekdays and entire weekend Sat & Sun
rules-disable-cronjob * Disable Cronjob with labels: "app:cj-1" in all the namespaces between 7pm to 7AM on weekdays and entire weekend Sat & Sun
rules-downscale-hpa * Disable Hpa with labels: "app:hpa-1" in all the namespaces between 7pm to 7AM on weekdays and entire weekend Sat & Sun
rules-downscale-individual-resources * Downscale Deployment, SS and Cronjob(disable) between 7pm to 7AM on weekdays and entire weekend Sat & Sun
rules-downtime-aftermidnight * If the resources are used in offset timezone and you want resouces to UP between 7AM-2AM(next day). This rule makes sure you have resouces scaledown from 2AM to 7AM and from Sat 2 AM to Monday 7AM.
rules-up-all-weekdays * If the resources want to be up 24x5 (mon-fri). This rule will scale down resources from Saturday 12AM to Sunday 23:59.
rules-alert-slack * Configure slack to alert when scale down and scale up
* Installation configuration deployment-slack-token.yaml
* Refer docs

Refer to Unit Testcase for more details and supported rules.