Comments (5)
I did some tests on 2 different GKE clusters (kubernetes 1.15):
- On the first cluster, I created 2 CronJobs, scheduled every minute, one with
startingDeadlineSeconds
set to 60, the other to 0. - On the other cluster, running slighlty modified version of the
kube-downscaler
(without the setspec.startingDeadlineSeconds
to 0 on resume), same CronJobs. - Annotated all these CronJobs to make them enter a downtime period for 10 minutes.
Observations after downtime:
- Only CronJob running with patched downscaler and with original
startingDeadlineSeconds
different from 0 resumed as expected. - Setting the
startingDeadlineSeconds
to 0 seems to give no chance toCronJobs
to schedule new jobs after resume.
Looks like setting the startingDeadlineSeconds
to 0 is never a good idea :/
from kube-downscaler.
Related: zalando-incubator/kubernetes-on-aws#3150
from kube-downscaler.
Why is the CronJob
's spec.startingDeadlineSeconds
reset to 0 in the first place ? I guess there is a valid reason behind this, but why not leaving the original value ?
from kube-downscaler.
@graillus I have the same question.
from kube-downscaler.
The fix was released in https://github.com/hjacobs/kube-downscaler/releases/tag/20.4.4
from kube-downscaler.
Related Issues (20)
- Comma separated time definitions HOT 1
- Namespace is retrieved for every resource (one extra API call per resource)
- Question: Any possibilty to downscale on holidays ? HOT 2
- downscaler/force-uptime: "false" is not working when defined in a namespace resource HOT 1
- Detect up/downscaling churn and back off
- Respect owner references
- Add e2e tests with KIND
- Including multiple namespaces?
- Route downscaled services to a maintenance page
- The downscaler/uptime does not seem to work as expected
- kube-system resources downscaling behavior is potentially problematic HOT 2
- `--namespace` and `--exclude-namespaces` seems to be mutually excluded options HOT 2
- Scale up & down should support priority
- Only downscale, with no automatic upscale HOT 2
- Deployments scaled down even though downtime=never HOT 7
- support grace period for updated deployments HOT 3
- Error with helm chart if I use value namespace.active_in HOT 1
- Support Stack resources with HPA
- New annotation downscaler/exclude-until HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-downscaler.