Skip to content

query(Kubernetes): add topologySpreadConstraints verification #7876

@felipeng

Description

@felipeng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityCommunity contributionkubernetesKubernetes queryqueryNew query feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions