Panfactum / stack

The Panfactum Stack

Home Page:https://panfactum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: `host_anti_affinity_required = false` in `kube_deployment` + `kube_descheduler` lead to regular preemption

jlevydev opened this issue · comments

Prior Search

  • I have already searched this project's issues to determine if a bug report has already been made.

What happened?

I deployed a kube_deployment with host_anti_affinity_required = false to allow workloads to run on the same nodes. I immediately noticed a sharp increase in workload disruption. Upon investigation of my cluster's events I found that the kube_descheduler was removing duplicate pods on nodes as is the Panfactum default, but if that's the case it probably isn't worth having host_anti_affinity_required be configurable since you're basically signing up to have the kube_descheduler nuke a pod every five minutes lol

image

Steps to Reproduce

  1. Create a kube_deployment with host_anti_affinity_required = false
  2. Scale that deployment such that you have more than one pod per node in your cluster (or at least have one set of pods sharing a node)
  3. Observe them get mercilessly de-scheduled

Relevant log output

No response

@jlevydev I verified this is an issue and it should be resolved in the next release.

Resolved.