Comments (3)
Good point about --namespace
: I added a sentence about the scenario it was designed for: c176ead
TL;DR: The usual use is to run kube-downscaler
for the whole cluster and only exclude namespaces/resources.
Regarding downscale-period
: what options did you specify and what other annotations did you add?
from kube-downscaler.
Thanks for the quick response, and the clarification!
That downscale-period
annotation is the only one on the deployments, with no annotations on the namespace, and the only options I specified for the kube-downscaler deployment itself are --interval
, --exclude-namespaces
(not including the namespace that the deployments I tested are in) and --debug
.
The annotation we use on everything else is downscaler/downtime: "Mon-Fri 00:00-07:00 Europe/London,Mon-Fri 19:30-24:00 Europe/London,Sat-Sun 00:00-24:00 Europe/London"
which works perfectly. We use that three-part downtime instead of just downscaler/uptime: "Mon-Fri 07:00-19:30 Europe/London"
because we want things that have been manually scaled down to stay scaled down until manually scaled up, and that seemed like the best way of doing that. We'd also like to be able to use downscale-period
to indefinitely scale down certain things that have been manually scaled up, so that unused dev instances don't linger forever. Again, I hope I'm understanding the documentation correctly and that those are the right ways to achieve our goals.
from kube-downscaler.
#70 fixes the remaining issue I had regarding the downscaler ignoring annotations on deployments in namespaces that don't have annotations.
Unfortunately, the change to what is now Line 87 results in an error about is_uptime being referenced before declaration, but it still works.
from kube-downscaler.
Related Issues (20)
- Suspending CronJob will break CronJobs with startingDeadlineSeconds HOT 5
- 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.