Comments (9)
Please see duplicate issue here #1268
As mentioned, you need to unset default value of strategies
in order for profiles to take over
deschedulerPolicy:
strategies:
from descheduler.
/kind support
from descheduler.
Going to close Issue, but please feel free to re-open if the mentioned solution does not work for you. Thanks!
/close
from descheduler.
@a7i: Closing this issue.
In response to this:
Going to close Issue, but please feel free to re-open if the mentioned solution does not work for you. Thanks!
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from descheduler.
Hi! @a7i
Yes, it works when you unset strategies
, but the problem is that there is no support for minReplicas
variable because I get this error:
I0429 08:30:02.818166 1 tlsconfig.go:240] "Starting DynamicServingCertificateController" E0429 08:30:02.819117 1 server.go:96] "descheduler server" err="failed decoding descheduler's policy config \"/policy-dir/policy.yaml\": strict decoding error: unknown field \"minReplicas\"" E0429 08:30:02.819145 1 run.go:74] "command failed" err="failed decoding descheduler's policy config \"/policy-dir/policy.yaml\": strict decoding error: unknown field \"minReplicas\""
Also topologySpreadConstraints
is also not supported, because this helm version - 0.29.0
just doesn't have this variable and uses old helm config... 😢
Another question is why to make code updates to master branch but don't create a new release version?
/reopen
from descheduler.
Hi @timetofaceit can you please share your policy yaml so I can guide you on setting it up for v1alpha2?
minReplicas
is available, please see README.md
Example:
profiles:
- name: default
pluginConfig:
- name: "DefaultEvictor"
args:
minReplicas: 2
from descheduler.
Hi! @a7i
Sure!
Yes I see that they are available, but I'm getting the same error that I mentioned previously. 😕
My helm chart values file config looks like this now:
deschedulerPolicyAPIVersion: descheduler/v1alpha2
deschedulerPolicy:
strategies: {}
profiles:
- name: Default
pluginConfig:
- name: DefaultEvictor
args:
evictLocalStoragePods: false
evictSystemCriticalPods: false
ignorePvcPods: false
evictFailedBarePods: false
nodeFit: true
minReplicas: 1
- name: RemoveDuplicates
args:
excludeOwnerKinds:
- ReplicaSet
- name: LowNodeUtilization
args:
thresholds:
cpu : 30
memory: 30
pods: 20
targetThresholds:
cpu : 80
memory: 80
pods: 50
- name: HighNodeUtilization
args:
thresholds:
cpu : 80
memory: 80
pods: 50
- name: RemovePodsViolatingInterPodAntiAffinity
- name: RemovePodsViolatingNodeAffinity
args:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
- name: RemovePodsViolatingTopologySpreadConstraint
args:
topologyBalanceNodeFit: true
constraints:
- DoNotSchedule
- ScheduleAnyway
plugins:
balance:
enabled:
- RemoveDuplicates
- LowNodeUtilization
- HighNodeUtilization
- RemovePodsViolatingTopologySpreadConstraint
deschedule:
enabled:
- RemovePodsViolatingInterPodAntiAffinity
- RemovePodsViolatingNodeAffinity
from descheduler.
oh right!
minReplicas
capability was added by me here: #1257
This is not part of release v0.29 and is scheduled for release v0.30 (should be out soon).
Please use the README from this release branch: https://github.com/kubernetes-sigs/descheduler/tree/release-1.29
from descheduler.
Ok, thanks for the info! 👍
Will close this now.
from descheduler.
Related Issues (20)
- Is descheduler executed in a loop? HOT 2
- Add exitCode to RemoveFailedPods strategy HOT 1
- Howto test RemovePodsViolatingInterPodAntiAffinity ? HOT 1
- RemoveDuplicates and nodeAffinity
- Would like a descheduler that evicts pods have preferred node anti-affinity
- Please reopen #1383 HOT 1
- Concurrency issues with the EvictPod method HOT 7
- Option for LowNodeUtilization and HighNodeUtilization for node regex name filtering HOT 3
- Investigate `kind` replacement for e2e HOT 7
- Descheduler Pod stuck in crashloopback HOT 2
- RemovePodsViolatingNodeTaints with includedTaints HOT 1
- status.phase=Unknown not available in 1.29 release HOT 8
- KEP-1397: descheduler integration with evacuation API as an alternative to eviction API
- Bump Kubernetes dependencies to v1.30.0
- 1.30: Update version references in docs and readme
- Chart not available anymore HOT 2
- Descheduler not evicting anything when deployed with Helm chart as a deployment HOT 2
- CrashLoopBackOff 0.29.0 HOT 5
- 1.30: Update CI in test-infra 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 descheduler.