Skip to content

Spread deployment replicas across nodes - #42

Merged
jhl-hk merged 3 commits into
mainfrom
chore/local-topology-20261112
Nov 12, 2026
Merged

jhl-hk merged 3 commits into
mainfrom
chore/local-topology-20261112

Conversation

@jhl-hk

@jhl-hk jhl-hk commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

What

  • Add hostname topology spread to deploy/k8s.yaml.
  • Use maxSkew: 1 and DoNotSchedule.
  • Match the application label and pod-template-hash so each revision is counted separately.
  • No replica count, image, or runtime setting changes in this commit.
  • Original HEAD: 74a2ab1. The original HEAD is not reachable from fetched origin/main. This branch retains that existing history.

Checks

  • git diff --check passed before commit.
  • No application builds or tests run for this manifest-only change.
  • Check eligible-node capacity and cluster support for matchLabelKeys before merging.
  • This change has not been deployed.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI review: 1 inline finding(s) on d8550a2. Summary in the AI Code Review comment.

Comment thread deploy/k8s.yaml Resolved
@github-actions

Copy link
Copy Markdown

🤖 AI Code Review

Full review of 08a59aa...d8550a2.

🔴 0 critical · 🟠 1 warning · 🔵 0 suggestion

The topology spread configuration is structurally valid, but it introduces a Kubernetes-version dependency that is not enforced by this repository. On clusters without matchLabelKeys support, applying the Deployment will fail rather than merely disabling the spread behavior.

1 finding(s) posted as inline comments.

Model: expen · generated automatically. Use judgment — it can be wrong.

@jhl-hk
jhl-hk merged commit a507e21 into main Nov 12, 2026
2 checks passed
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