add descheduler
This commit is contained in:
parent
fe1088b239
commit
ac4282a6c5
4 changed files with 91 additions and 0 deletions
64
kubernetes/apps/kube-system/descheduler/app/helmrelease.yaml
Normal file
64
kubernetes/apps/kube-system/descheduler/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: descheduler
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: descheduler
|
||||||
|
version: 0.31.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: descheduler
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
upgrade:
|
||||||
|
cleanupOnFail: true
|
||||||
|
remediation:
|
||||||
|
strategy: rollback
|
||||||
|
retries: 3
|
||||||
|
values:
|
||||||
|
replicas: 2
|
||||||
|
kind: Deployment
|
||||||
|
deschedulerPolicyAPIVersion: descheduler/v1alpha2
|
||||||
|
deschedulerPolicy:
|
||||||
|
profiles:
|
||||||
|
- name: Default
|
||||||
|
pluginConfig:
|
||||||
|
- name: DefaultEvictor
|
||||||
|
args:
|
||||||
|
evictFailedBarePods: true
|
||||||
|
evictLocalStoragePods: true
|
||||||
|
evictSystemCriticalPods: true
|
||||||
|
nodeFit: true
|
||||||
|
- name: RemovePodsViolatingInterPodAntiAffinity
|
||||||
|
- name: RemovePodsViolatingNodeAffinity
|
||||||
|
args:
|
||||||
|
nodeAffinityType:
|
||||||
|
- requiredDuringSchedulingIgnoredDuringExecution
|
||||||
|
- name: RemovePodsViolatingNodeTaints
|
||||||
|
- name: RemovePodsViolatingTopologySpreadConstraint
|
||||||
|
args:
|
||||||
|
constraints:
|
||||||
|
- DoNotSchedule
|
||||||
|
- ScheduleAnyway
|
||||||
|
plugins:
|
||||||
|
balance:
|
||||||
|
enabled:
|
||||||
|
- RemovePodsViolatingTopologySpreadConstraint
|
||||||
|
deschedule:
|
||||||
|
enabled:
|
||||||
|
- RemovePodsViolatingInterPodAntiAffinity
|
||||||
|
- RemovePodsViolatingNodeAffinity
|
||||||
|
- RemovePodsViolatingNodeTaints
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
leaderElection:
|
||||||
|
enabled: true
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./helmrelease.yaml
|
20
kubernetes/apps/kube-system/descheduler/ks.yaml
Normal file
20
kubernetes/apps/kube-system/descheduler/ks.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &app descheduler
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
targetNamespace: kube-system
|
||||||
|
commonMetadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: *app
|
||||||
|
path: ./kubernetes/apps/kube-system/descheduler/app
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: theshire
|
||||||
|
wait: false
|
||||||
|
interval: 30m
|
||||||
|
timeout: 5m
|
|
@ -8,6 +8,7 @@ resources:
|
||||||
# Flux-Kustomizations
|
# Flux-Kustomizations
|
||||||
- ./cilium/ks.yaml
|
- ./cilium/ks.yaml
|
||||||
- ./coredns/ks.yaml
|
- ./coredns/ks.yaml
|
||||||
|
- ./descheduler/ks.yaml
|
||||||
- ./dnsimple-webhook-rbac.yaml
|
- ./dnsimple-webhook-rbac.yaml
|
||||||
- ./fstrim/ks.yaml
|
- ./fstrim/ks.yaml
|
||||||
- ./kubelet-csr-approver/ks.yaml
|
- ./kubelet-csr-approver/ks.yaml
|
||||||
|
|
Loading…
Reference in a new issue