-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add server groups to OpenStack example #3354
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jan Dittrich <jan.dittrich@cgm.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @jan-di. Thanks for your PR. I'm waiting for a kubermatic member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/kind documentation |
/test pull-kubeone-e2e-openstack-default-install-containerd-external-v1.30.1 |
scheduler_hints { | ||
group = openstack_compute_servergroup_v2.control_plane.id | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we provide an easy way to disable this? For example, if we can control this with a variable.
@@ -88,6 +88,12 @@ variable "control_plane_flavor" { | |||
type = string | |||
} | |||
|
|||
variable "control_plane_group_policy" { | |||
description = "OpenStack instance group policy for the control plane nodes. Cannot be changed without recreating VMs!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "OpenStack instance group policy for the control plane nodes. Cannot be changed without recreating VMs!" | |
description = "OpenStack instance group policy for the control plane nodes" |
We'll document the other part in the changelog.
@@ -88,6 +88,12 @@ variable "control_plane_flavor" { | |||
type = string | |||
} | |||
|
|||
variable "control_plane_group_policy" { | |||
description = "OpenStack instance group policy for the control plane nodes. Cannot be changed without recreating VMs!" | |||
default = "soft-anti-affinity" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we somewhere document supported values and why we recommend soft-anti-affinity
?
resource "openstack_compute_servergroup_v2" "control_plane" { | ||
name = "${var.cluster_name}-control_plane" | ||
policies = [var.control_plane_group_policy] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are policies supported by default on all OpenStack installations or does it require policies to be explicitly enabled and created?
What this PR does / why we need it:
Add server groups to OpenStack example. Server groups allow controlling anti affinity of control plane nodes. Therefore, you can ensure that control plane nodes run on different hypervisors. Per default, its configured to use "soft-anti-affinity" (try to use different hypervisors, fallback to use the same hypervisors if not possible to spread).
What type of PR is this?
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: