kics icon indicating copy to clipboard operation
kics copied to clipboard

query(Kubernetes): add topologySpreadConstraints verification

Open felipeng opened this issue 1 month ago • 1 comments

Platform

Kubernetes

Description

Add a new KICS query to verify whether topologySpreadConstraints is configured in Kubernetes workloads (e.g., Deployments, StatefulSets). This would help detect cases where pods may not be properly distributed across nodes or zones. Improves resilience and scheduling best practices by promoting proper pod distribution.

Take in consideration that topologySpreadConstraints query conflicts with Deployment Has No PodAntiAffinity

felipeng avatar Nov 24 '25 20:11 felipeng

Hey, can i get assigned ?

ignorant05 avatar Nov 24 '25 20:11 ignorant05