Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions machine_management/creating-infrastructure-machinesets.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 2 additions & 0 deletions modules/machineset-yaml-osp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
namespace: openshift-machine-api
flavor: <nova_flavor>
image: <glance_image_name_or_location>
serverGroupID: <optional_UUID_of_server_group> <4>
kind: OpenstackProviderSpec
networks:
- filter: {}
Expand Down Expand Up @@ -78,3 +79,4 @@ $ 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> Enter the value that is returned when 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]. The server group must have `anti-affinity` or `soft-anti-affinity` policies.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actually, while I can't imagine a reason for setting affinity or soft-affinity, any policy (or none) is fine as far as OpenShift is concerned.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'd go like:
"Can be used to set an anti-affinity policy for the MachineSet".