Coder Social home page Coder Social logo

Comments (9)

a7i avatar a7i commented on July 3, 2024

Hi @timetofaceit

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.

a7i avatar a7i commented on July 3, 2024

/kind support

from descheduler.

a7i avatar a7i commented on July 3, 2024

Going to close Issue, but please feel free to re-open if the mentioned solution does not work for you. Thanks!

/close

from descheduler.

k8s-ci-robot avatar k8s-ci-robot commented on July 3, 2024

@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.

timetofaceit avatar timetofaceit commented on July 3, 2024

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.

a7i avatar a7i commented on July 3, 2024

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.

timetofaceit avatar timetofaceit commented on July 3, 2024

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.

a7i avatar a7i commented on July 3, 2024

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.

timetofaceit avatar timetofaceit commented on July 3, 2024

Ok, thanks for the info! 👍

Will close this now.

from descheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.