Skip to content

feat(helm): add topologySpreadConstraints to kmcp deployment - #139

Open
anthonyhaussman wants to merge 1 commit into
kagent-dev:mainfrom
anthonyhaussman:feat/helm-topology-spread-constraints
Open

feat(helm): add topologySpreadConstraints to kmcp deployment#139
anthonyhaussman wants to merge 1 commit into
kagent-dev:mainfrom
anthonyhaussman:feat/helm-topology-spread-constraints

Conversation

@anthonyhaussman

Copy link
Copy Markdown

Description

Add topologySpreadConstraints configuration in the kmcp Helm chart.

This allows users to control how pods are spread across a Kubernetes cluster among failure-domains (such as regions, zones, nodes, and other user-defined topology domains) to achieve high availability.

Changes

  • values.yaml: Added an empty topologySpreadConstraints: [] array for default configuration.
  • templates/deployment.yaml: Added templating logic to inject topologySpreadConstraints into the Pod spec when provided.
  • tests/deployment_test.yaml: Added a new unit test case to ensure constraints render correctly in the deployment snapshot.
  • tests/snapshot: Updated helm-unittest snapshots to reflect the new test case.

Assisted-by: Gemini 3.1 Pro
Signed-off-by: Anthony Hausman <anthonyhaussmann@gmail.com>
@anthonyhaussman
anthonyhaussman force-pushed the feat/helm-topology-spread-constraints branch from 7a43183 to 4036bd3 Compare August 3, 2026 20:47
@anthonyhaussman
anthonyhaussman marked this pull request as ready for review August 3, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant