Skip to content

Add control plane count selection to cluster creation form#565

Open
mgrzybek wants to merge 3 commits into
masterfrom
feat/cp-number
Open

Add control plane count selection to cluster creation form#565
mgrzybek wants to merge 3 commits into
masterfrom
feat/cp-number

Conversation

@mgrzybek
Copy link
Copy Markdown
Contributor

Allow users to choose between 1 (single) or 3 (HA, default) control plane nodes when creating a Kubernetes cluster.

  • API: add control_plane_count field (choices: 1 or 3, default: 3) to CreateKubernetesClusterSerializer and propagate it through create_cluster() and _build_cluster_spec() as controlPlaneMachineCount in the CRD spec
  • Quota calculator: accept an explicit control_plane_count that overrides the template value when calculating required resources
  • UI: add inline radio buttons (1 / 3 HA) after the control plane size selector; defaults to 3 on new clusters

Requires azimuth-capi-operator with azimuth-cloud/azimuth-capi-operator#587 merged and released.

Allow users to choose between 1 (single) or 3 (HA, default) control
plane nodes when creating a Kubernetes cluster.

- API: add `control_plane_count` field (choices: 1 or 3, default: 3)
  to `CreateKubernetesClusterSerializer` and propagate it through
  `create_cluster()` and `_build_cluster_spec()` as
  `controlPlaneMachineCount` in the CRD spec
- Quota calculator: accept an explicit `control_plane_count` that
  overrides the template value when calculating required resources
- UI: add inline radio buttons (1 / 3 HA) after the control plane size
  selector; defaults to 3 on new clusters

Requires azimuth-capi-operator with azimuth-cloud/azimuth-capi-operator#587 merged and released.
@mgrzybek mgrzybek requested a review from a team as a code owner April 15, 2026 09:26
# First, deal with the control plane
resources.add_machines(template.control_plane_count, control_plane_size)
resources.add_machines(cp_count, control_plane_size)
if template.etcd_volume_size > 0:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we need to account for etcd_volume_size coming in from values now too, rather than just from the template.

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.

2 participants