You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2020. It is now read-only.
Adds support for 'downtime-replicas' deployment annotation (#38)
* Adds support for scale-down-to pod annotation
* Updates docs
* Clarifies readme that annotation is on the deployment
* Fixes formatting
* Renames annotation to 'downtime-replicas'
Copy file name to clipboardExpand all lines: README.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Scale down Kubernetes deployments and/or statefulsets during non-work hours.
18
18
19
19
Deployments are interchangeable by statefulset for this whole guide.
20
20
21
-
It will scale the deployment's replicas to zero if all of the following conditions are met:
21
+
It will scale down the deployment's replicas if all of the following conditions are met:
22
22
23
23
* current time is not part of the "uptime" schedule or current time is part of the "downtime" schedule. The schedules are being evaluated in following order:
24
24
* ``downscaler/downtime`` annotation on the deployment/stateful set
@@ -34,7 +34,7 @@ It will scale the deployment's replicas to zero if all of the following conditio
34
34
* the deployment is not marked for exclusion (annotation ``downscaler/exclude: "true"``)
35
35
* there are no active pods that force the whole cluster into uptime (annotation ``downscaler/force-uptime: "true"``)
36
36
37
-
37
+
The deployment by default will be scaled down to zero replicas. This can be configured with a deployment annotation of ``downscaler/downtime-replicas``. (eg: ``downscaler/downtime-replicas: "1"``)
0 commit comments