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

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