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
Normal Succeed 5s cron-horizontal-pod-autoscaler cron hpa job scale-down executed successfully
159
+
Type Reason Age From Message
160
+
---- ------ ---- ---- -------
161
+
Normal Succeed 42m (x5165 over 3d14h) cron-horizontal-pod-autoscaler cron hpa job scale-down executed successfully. current replicas:3, desired replicas:1
162
+
Normal Succeed 30m cron-horizontal-pod-autoscaler cron hpa job scale-up executed successfully. current replicas:1, desired replicas:3
163
+
Normal Succeed 17m (x13 over 29m) cron-horizontal-pod-autoscaler cron hpa job scale-up executed successfully. current replicas:2, desired replicas:3
164
+
Normal Succeed 4m59s (x26 over 29m) cron-horizontal-pod-autoscaler cron hpa job scale-down executed successfully. current replicas:3, desired replicas:2
143
165
```
144
166
🍻Cheers! It works.
145
167
@@ -201,9 +223,18 @@ The cronhpa job spec need three fields:
201
223
202
224
more schedule scheme please check this <atarget="_blank"href="https://godoc.org/github.com/robfig/cron">doc</a>.
203
225
204
-
* targetSize
226
+
* targetSize
205
227
`TargetSize` is the size you desired to scale when the scheduled time arrive.
206
-
228
+
229
+
* runOnce
230
+
if `runOnce` is true then the job will only run and exit after the first execution.
231
+
232
+
* excludeDates
233
+
excludeDates is a dates array. The job will skip the execution when the dates is matched. The minimum unit is day. If you want to skip the date(November 15th), You can specific the excludeDates like below.
234
+
```$xslt
235
+
excludeDates:
236
+
- "* * * 15 11 *"
237
+
```
207
238
208
239
## Common Question
209
240
* Cloud `kubernetes-cronhpa-controller` and HPA work together?
0 commit comments