Skip to content

Commit

Permalink
fix(descheduler): move to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Nov 29, 2023
1 parent bfe6a6a commit 18828af
Showing 1 changed file with 43 additions and 40 deletions.
83 changes: 43 additions & 40 deletions kubernetes/apps/kube-system/descheduler/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,63 +27,66 @@ spec:
values:
replicas: 2
kind: Deployment
schedule: "*/5 * * * *"
deschedulerPolicyAPIVersion: descheduler/v1alpha2
deschedulerPolicy:
strategies:
RemovePodsHavingTooManyRestarts:
enabled: true
params:
podsHavingTooManyRestarts:
profiles:
- name: ProfileName
pluginConfig:
- name: DefaultEvictor
args:
evictSystemCriticalPods: true
evictFailedBarePods: true
evictLocalStoragePods: true
- name: RemovePodsHavingTooManyRestarts
args:
podRestartThreshold: 5
includingInitContainers: true
RemovePodsViolatingTopologySpreadConstraint:
enabled: true
params:
includeSoftConstraints: true
PodLifeTime:
enabled: true
params:
podLifeTime:
- name: RemovePodsViolatingTopologySpreadConstraint
args:
constraints:
- DoNotSchedule
- name: PodLifeTime
args:
states:
- Pending
- PodInitializing
- ContainerCreating
maxPodLifeTimeSeconds: 300
RemoveFailedPods:
enabled: true
params:
failedPods:
reasons:
- Error
- Completed
- NodeShutdown
- ImagePullBackOff
- CreateContainerConfigError
includingInitContainers: true
- name: RemoveFailedPods
args:
excludeOwnerKinds:
- Job
includingInitContainers: true
minPodLifetimeSeconds: 300
RemoveDuplicates:
enabled: true
RemovePodsViolatingNodeTaints:
enabled: true
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
LowNodeUtilization:
enabled: true
params:
nodeResourceUtilizationThresholds:
- name: RemoveDuplicates
- name: RemovePodsViolatingNodeTaints
- name: RemovePodsViolatingNodeAffinity
args:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
- name: RemovePodsViolatingInterPodAntiAffinity
- name: LowNodeUtilization
args:
thresholds:
cpu: 40
pods: 30
targetThresholds:
cpu: 45
pods: 45
plugins:
balance:
enabled:
- RemoveDuplicates
- LowNodeUtilization
- RemovePodsViolatingTopologySpreadConstraint
deschedule:
enabled:
- PodLifeTime
- RemoveFailedPods
- RemovePodsViolatingNodeTaints
- RemovePodsViolatingNodeAffinity
- RemovePodsHavingTooManyRestarts
- RemovePodsViolatingInterPodAntiAffinity
service:
enabled: true
serviceMonitor:
Expand Down

0 comments on commit 18828af

Please sign in to comment.