Allow control plane machine count to be set per cluster#587
Open
mgrzybek wants to merge 4 commits into
Open
Conversation
mgrzybek
added a commit
to azimuth-cloud/azimuth
that referenced
this pull request
Apr 15, 2026
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.
m-bull
requested changes
Apr 28, 2026
Add an optional `controlPlaneMachineCount` field to `ClusterSpec`. When set, it overrides the `controlPlane.machineCount` defined in the cluster template, enabling operators to choose between a single-node and a 3-node HA control plane at cluster creation time. Clusters that do not specify this field continue to use the count defined in their template, preserving backwards compatibility.
Signed-off-by: Mathieu Grzybek <mathieu@stackhpc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an optional
controlPlaneMachineCountfield toClusterSpec. When set, it overrides thecontrolPlane.machineCountdefined in the cluster template, enabling operators to choose between a single-node and a 3-node HA control plane at cluster creation time.Clusters that do not specify this field continue to use the count defined in their template, preserving backwards compatibility.