mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🔧 descheduler
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
@@ -17,7 +17,6 @@ spec:
|
|||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
maxHistory: 2
|
maxHistory: 2
|
||||||
install:
|
install:
|
||||||
createNamespace: true
|
|
||||||
remediation:
|
remediation:
|
||||||
retries: 3
|
retries: 3
|
||||||
upgrade:
|
upgrade:
|
||||||
@@ -27,72 +26,42 @@ spec:
|
|||||||
uninstall:
|
uninstall:
|
||||||
keepHistory: false
|
keepHistory: false
|
||||||
values:
|
values:
|
||||||
|
replicas: 2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
replicas: 1
|
deschedulerPolicyAPIVersion: descheduler/v1alpha2
|
||||||
leaderElection:
|
|
||||||
enabled: true
|
|
||||||
leaseDuration: 15s
|
|
||||||
renewDeadline: 10s
|
|
||||||
retryPeriod: 2s
|
|
||||||
resourceLock: "leases"
|
|
||||||
resourceName: "descheduler"
|
|
||||||
resourceNamescape: "kube-system"
|
|
||||||
deschedulerPolicy:
|
deschedulerPolicy:
|
||||||
strategies:
|
profiles:
|
||||||
RemoveDuplicates:
|
- name: Default
|
||||||
enabled: true
|
pluginConfig:
|
||||||
RemovePodsViolatingNodeTaints:
|
- name: DefaultEvictor
|
||||||
enabled: true
|
args:
|
||||||
RemovePodsViolatingNodeAffinity:
|
evictFailedBarePods: true
|
||||||
enabled: true
|
evictLocalStoragePods: true
|
||||||
params:
|
evictSystemCriticalPods: true
|
||||||
nodeAffinityType:
|
nodeFit: true
|
||||||
- requiredDuringSchedulingIgnoredDuringExecution
|
- name: RemovePodsViolatingInterPodAntiAffinity
|
||||||
RemovePodsViolatingTopologySpreadConstraint:
|
- name: RemovePodsViolatingNodeAffinity
|
||||||
enabled: true
|
args:
|
||||||
params:
|
nodeAffinityType:
|
||||||
includeSoftConstraints: true
|
- requiredDuringSchedulingIgnoredDuringExecution
|
||||||
RemovePodsViolatingInterPodAntiAffinity:
|
- name: RemovePodsViolatingNodeTaints
|
||||||
enabled: true
|
- name: RemovePodsViolatingTopologySpreadConstraint
|
||||||
params:
|
args:
|
||||||
nodeFit: true
|
constraints:
|
||||||
LowNodeUtilization:
|
- DoNotSchedule
|
||||||
enabled: false
|
- ScheduleAnyway
|
||||||
RemoveFailedPods:
|
plugins:
|
||||||
enabled: true
|
balance:
|
||||||
params:
|
enabled:
|
||||||
failedPods:
|
- RemovePodsViolatingTopologySpreadConstraint
|
||||||
includingInitContainers: true
|
deschedule:
|
||||||
excludeOwnerKinds:
|
enabled:
|
||||||
- "Job"
|
- RemovePodsViolatingInterPodAntiAffinity
|
||||||
minPodLifetimeSeconds: 3600
|
- RemovePodsViolatingNodeAffinity
|
||||||
RemovePodsHavingTooManyRestarts:
|
- RemovePodsViolatingNodeTaints
|
||||||
enabled: true
|
|
||||||
params:
|
|
||||||
podsHavingTooManyRestarts:
|
|
||||||
podRestartThreshold: 100
|
|
||||||
includingInitContainers: true
|
|
||||||
service:
|
service:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
podAnnotations:
|
leaderElection:
|
||||||
configmap.reloader.stakater.com/reload: *app
|
enabled: true
|
||||||
affinity:
|
|
||||||
podAntiAffinity:
|
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- weight: 100
|
|
||||||
podAffinityTerm:
|
|
||||||
labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: app.kubernetes.io/name
|
|
||||||
operator: In
|
|
||||||
values: [*app]
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 15m
|
|
||||||
memory: 105Mi
|
|
||||||
limits:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 512Mi
|
|
||||||
|
Reference in New Issue
Block a user