Skip to content

CKS: spread control, etcd and worker nodes across hosts by default #14762

Open

Description

@bhouse-nexthop

The required feature described as a wish

As a CKS user, I want the nodes of each type in my Kubernetes cluster spread across hosts by default, so that one host failure does not take down the whole control plane or every etcd member.

Today

Placement Control, etcd and worker VMs of a CKS cluster can all land on the same host
Workaround Create host anti-affinity groups by hand and pass them per node type at create time (#12386)
Risk Users who don't know to do this get clusters where one host loss = full control plane / etcd quorum loss

Proposal

  • When no affinity group is given for a node type, CKS creates a non-strict host anti-affinity group for that node type of the cluster and uses it (workers always; control and etcd when there are 2+).
  • Non-strict only prefers other hosts, so clusters still deploy and scale when there are fewer hosts than nodes.
  • User-specified groups win; no default for that node type then.
  • New account-scoped setting to turn it off.
  • Groups CKS created are deleted with the cluster. User groups are never touched.
  • Existing clusters are not changed.

Activity

  1. github-actions commented on Nov 24, 2026

    @github-actions

    Warning

    threat detection engine error
    The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

    What happened

    The threat detection engine failed to produce results.

    Review the workflow run logs for details.

    🎯 Triage report

    The request is for CKS to create a non-strict host anti-affinity group per node type (workers always, control and etcd with 2 or more nodes) when the user gives none, so nodes spread across hosts by default. The reporter proposes a new account-scoped setting to turn this off. Draft PR #14763 is already open.

    📊 Assessment

    Dimension Value Reasoning
    Type type:enhancement Changes default placement for new CKS clusters
    Component component:cks CKS node placement and affinity groups
    Severity n/a Not a bug report
    Labels type:enhancement, component:cks Based on the issue text
    Coding agent Needs more info Default behaviour and the new setting are maintainer decisions; PR #14763 exists

    🔗 Similar issues

    💡 Notes and suggestions
    • The default is non-strict, so clusters still deploy when there are fewer hosts than nodes. Check the case with fewer hosts than nodes in the PR.
    • Groups created by CKS are deleted with the cluster; user-provided groups are not touched. Confirm this in review.

    Generated by Daily Issue Triage · copilot · haiku55 · ~6 AIC · ⊞ 3.8K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions