1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/windows-machineset-nutanix.adoc

92 lines
3.9 KiB
Plaintext

// Module included in the following assemblies:
//
// * windows_containers/creating_windows_machinesets/creating-windows-machineset-nutanix.adoc
:_mod-docs-content-type: REFERENCE
[id="windows-machineset-nutanix_{context}"]
= Sample YAML for a Windows MachineSet object on Nutanix
This sample YAML defines a Windows `MachineSet` object running on Nutanix that the Windows Machine Config Operator (WMCO) can react upon.
[source,yaml]
----
apiVersion: machine.openshift.io/v1beta1
kind: MachineSet
metadata:
labels:
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
name: <infrastructure_id>-windows-worker-<zone> <2>
namespace: openshift-machine-api
spec:
replicas: 1
selector:
matchLabels:
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-windows-worker-<zone> <2>
template:
metadata:
labels:
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
machine.openshift.io/cluster-api-machine-role: worker
machine.openshift.io/cluster-api-machine-type: worker
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-windows-worker-<zone> <2>
machine.openshift.io/os-id: Windows <3>
spec:
metadata:
labels:
node-role.kubernetes.io/worker: "" <4>
providerSpec:
value:
apiVersion: machine.openshift.io/v1
bootType: "" <5>
categories: null
cluster: <6>
type: uuid
uuid: <cluster_uuid>
credentialsSecret:
name: nutanix-credentials <7>
image: <8>
name: <image_id>
type: name
kind: NutanixMachineProviderConfig <9>
memorySize: 16Gi <10>
project:
type: ""
subnets: <11>
- type: uuid
uuid: <subnet_uuid>
systemDiskSize: 120Gi <12>
userDataSecret:
name: windows-user-data <13>
vcpuSockets: 4 <14>
vcpusPerSocket: 1 <15>
----
<1> Specify the infrastructure ID that is based on the cluster ID that you set when you provisioned the cluster. You can obtain the infrastructure ID by running the following command:
+
[source,terminal]
----
$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster
----
<2> Specify the infrastructure ID, worker label, and zone.
<3> Configure the compute machine set as a Windows machine.
<4> Configure the Windows node as a compute machine.
<5> Specifies the boot type that the compute machines use. For more information about boot types, see link:https://portal.nutanix.com/page/documents/kbs/details?targetId=kA07V000000H3K9SAK[Understanding UEFI, Secure Boot, and TPM in the Virtualized Environment]. Valid values are `Legacy`, `SecureBoot`, or `UEFI`. The default is `Legacy`.
+
[NOTE]
====
You must use the `Legacy` boot type in {product-title} {product-version}.
====
<6> Specifies a Nutanix Prism Element cluster configuration. In this example, the cluster type is `uuid`, so there is a `uuid` stanza.
<7> Specifies the secret name for the cluster. Do not change this value.
<8> Specifies the image to use. Use an image from an existing default compute machine set for the cluster.
<9> Specifies the cloud provider platform type. Do not change this value.
<10> Specifies the amount of memory for the cluster in Gi.
<11> Specifies a subnet configuration. In this example, the subnet type is `uuid`, so there is a `uuid` stanza.
<12> Specifies the size of the system disk in Gi.
<13> Specifies the name of the secret in the user data YAML file that is in the `openshift-machine-api` namespace. Use the value that installation program populates in the default compute machine set.
<14> Specifies the number of vCPU sockets.
<15> Specifies the number of vCPUs per socket.
// providerSpec section is based on cpmso-yaml-provider-spec-nutanix.adoc