From 8bb933937c5de7931412a8e4b7ffd94da2bfb47a Mon Sep 17 00:00:00 2001 From: Max Bridges <50179998+maxwelldb@users.noreply.github.com> Date: Wed, 14 Oct 2020 14:35:15 -0400 Subject: [PATCH] Add MachineSet infra and server group content (#25837) * Add MachineSet infra and server group content * Feedback tweak * Add recommended policies --- machine_management/creating-infrastructure-machinesets.adoc | 2 ++ modules/machineset-yaml-osp.adoc | 3 +++ 2 files changed, 5 insertions(+) diff --git a/machine_management/creating-infrastructure-machinesets.adoc b/machine_management/creating-infrastructure-machinesets.adoc index 8e1ab00c9c7a..38bdf98fe5b2 100644 --- a/machine_management/creating-infrastructure-machinesets.adoc +++ b/machine_management/creating-infrastructure-machinesets.adoc @@ -56,6 +56,8 @@ You can save on costs by using preemptible VM instances at a lower price compared to normal instances on GCP. You can xref:../machine_management/creating_machinesets/creating-machineset-gcp.adoc#machineset-creating-non-guaranteed-instance_creating-machineset-gcp[configure preemptible VM instances] by adding `preemptible` to the MachineSet YAML file. +include::modules/machineset-yaml-osp.adoc[leveloffset=+3] + include::modules/machineset-creating.adoc[leveloffset=+2] [id="moving-resources-to-infrastructure-machinesets"] diff --git a/modules/machineset-yaml-osp.adoc b/modules/machineset-yaml-osp.adoc index 096668fff530..a9dbc998cd3c 100644 --- a/modules/machineset-yaml-osp.adoc +++ b/modules/machineset-yaml-osp.adoc @@ -48,6 +48,7 @@ spec: namespace: openshift-machine-api flavor: image: + serverGroupID: <4> kind: OpenstackProviderSpec networks: - filter: {} @@ -79,3 +80,5 @@ $ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster ---- <2> Specify the node label to add. <3> Specify the infrastructure ID and node label. +<4> To set a server group policy for the MachineSet, enter the value that is returned from +link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html/command_line_interface_reference/server#server_group_create[creating a server group]. For most deployments, `anti-affinity` or `soft-anti-affinity` policies are recommended.