Bug 2124930

Summary: Descheduler mode needs to be specified
Product: Container Native Virtualization (CNV) Reporter: Sarah Bennert <sbennert>
Component: DocumentationAssignee: Sabrina Jess <sjess>
Status: CLOSED CURRENTRELEASE QA Contact: Roni Kishner <rkishner>
Severity: high Docs Contact:
Priority: high    
Version: 4.11.0CC: apinnick, dholler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-13 20:55:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sarah Bennert 2022-09-07 13:51:16 UTC
Document URL: 

[0] https://github.com/openshift/openshift-docs/blob/98910ac48a471d595114152e41a497a49db52de0/modules/virt-enabling-descheduler-evictions.adoc

[1] https://github.com/openshift/openshift-docs/blob/31bac1ebc3e5395a84b0c345b7db0d5bb363d4e3/modules/nodes-descheduler-configuring-profiles.adoc

Section Number and Name: 
Enabling descheduler evictions on a virtual machine (VM) [0]
Configuring descheduler profiles [1]

Describe the issue: 

As of 4.11, Descheduler added a 'mode' to the spec, which is defaulted to 'Predictive' which does not evict pods. In order for the descheduler to evict, this must be set to 'Automatic'

Suggestions for improvement: 

Additional information:

Comment 2 Avital Pinnick 2022-10-25 13:23:07 UTC
Dominik, can you provide an example of the 4.11 KubeDescheduler manifest?

Comment 3 Sarah Bennert 2022-10-25 14:00:28 UTC
Hi Avital, this is a minimal implementation using a single profile. If used for VMs, profile should be 'DevPreviewLongLifecycle'

apiVersion: operator.openshift.io/v1
kind: KubeDescheduler
metadata:
  name: cluster
  namespace: openshift-kube-descheduler-operator
spec:
  deschedulingIntervalSeconds: 3600
  logLevel: Normal
  managementState: Managed
  operatorLogLevel: Normal
  mode: Automatic
  profiles:
  - AffinityAndTaints