diff --git a/modules/cpmso-yaml-provider-spec-azure.adoc b/modules/cpmso-yaml-provider-spec-azure.adoc index 2800b08ad2c0..643cad007a03 100644 --- a/modules/cpmso-yaml-provider-spec-azure.adoc +++ b/modules/cpmso-yaml-provider-spec-azure.adoc @@ -39,7 +39,7 @@ spec: image: <2> offer: "" publisher: "" - resourceID: /resourceGroups/-rg/providers/Microsoft.Compute/galleries/gallery_/images/-gen2/ versions/412.86.20220930 <3> + resourceID: /resourceGroups/-rg/providers/Microsoft.Compute/galleries/gallery_/images/-gen2/versions/412.86.20220930 <3> sku: "" version: "" internalLoadBalancer: -internal <4> diff --git a/modules/machineset-yaml-azure.adoc b/modules/machineset-yaml-azure.adoc index ca2a83ca87ed..19c259787a82 100644 --- a/modules/machineset-yaml-azure.adoc +++ b/modules/machineset-yaml-azure.adoc @@ -17,7 +17,7 @@ ifdef::infra[`node-role.kubernetes.io/infra: ""`.] In this sample, `` is the infrastructure ID label that is based on the cluster ID that you set when you provisioned the cluster, and ifndef::infra[``] -ifdef::infra[``] +ifdef::infra[`infra`] is the node label to add. [source,yaml] @@ -26,43 +26,43 @@ apiVersion: machine.openshift.io/v1beta1 kind: MachineSet metadata: labels: - machine.openshift.io/cluster-api-cluster: <1> + machine.openshift.io/cluster-api-cluster: # <1> ifndef::infra[] - machine.openshift.io/cluster-api-machine-role: <2> - machine.openshift.io/cluster-api-machine-type: <2> - name: -- <3> + machine.openshift.io/cluster-api-machine-role: # <2> + machine.openshift.io/cluster-api-machine-type: + name: -- # <3> endif::infra[] ifdef::infra[] - machine.openshift.io/cluster-api-machine-role: <2> - machine.openshift.io/cluster-api-machine-type: <2> - name: -infra- <3> + machine.openshift.io/cluster-api-machine-role: infra # <2> + machine.openshift.io/cluster-api-machine-type: infra + name: -infra- # <3> endif::infra[] namespace: openshift-machine-api spec: replicas: 1 selector: matchLabels: - machine.openshift.io/cluster-api-cluster: <1> + machine.openshift.io/cluster-api-cluster: ifndef::infra[] - machine.openshift.io/cluster-api-machineset: -- <3> + machine.openshift.io/cluster-api-machineset: -- endif::infra[] ifdef::infra[] - machine.openshift.io/cluster-api-machineset: -infra- <3> + machine.openshift.io/cluster-api-machineset: -infra- endif::infra[] template: metadata: creationTimestamp: null labels: - machine.openshift.io/cluster-api-cluster: <1> + machine.openshift.io/cluster-api-cluster: ifndef::infra[] - machine.openshift.io/cluster-api-machine-role: <2> - machine.openshift.io/cluster-api-machine-type: <2> - machine.openshift.io/cluster-api-machineset: -- <3> + machine.openshift.io/cluster-api-machine-role: + machine.openshift.io/cluster-api-machine-type: + machine.openshift.io/cluster-api-machineset: -- endif::infra[] ifdef::infra[] - machine.openshift.io/cluster-api-machine-role: <2> - machine.openshift.io/cluster-api-machine-type: <2> - machine.openshift.io/cluster-api-machineset: -infra- <3> + machine.openshift.io/cluster-api-machine-role: infra + machine.openshift.io/cluster-api-machine-type: infra + machine.openshift.io/cluster-api-machineset: -infra- endif::infra[] spec: metadata: @@ -70,10 +70,10 @@ endif::infra[] labels: machine.openshift.io/cluster-api-machineset: ifndef::infra[] - node-role.kubernetes.io/: "" <2> + node-role.kubernetes.io/: "" endif::infra[] ifdef::infra[] - node-role.kubernetes.io/infra: "" <2> + node-role.kubernetes.io/infra: "" endif::infra[] providerSpec: value: @@ -81,16 +81,16 @@ endif::infra[] credentialsSecret: name: azure-cloud-credentials namespace: openshift-machine-api - image: <4> + image: # <4> offer: "" publisher: "" - resourceID: /resourceGroups/-rg/providers/Microsoft.Compute/images/ <5> + resourceID: /resourceGroups/-rg/providers/Microsoft.Compute/galleries/gallery_/images/-gen2/versions/latest # <5> sku: "" version: "" internalLoadBalancer: "" kind: AzureMachineProviderSpec - location: <6> - managedIdentity: -identity <1> + location: # <6> + managedIdentity: -identity metadata: creationTimestamp: null natRule: null @@ -102,20 +102,20 @@ endif::infra[] osType: Linux publicIP: false publicLoadBalancer: "" - resourceGroup: -rg <1> + resourceGroup: -rg sshPrivateKey: "" sshPublicKey: "" tags: - - name: <8> - value: <8> - subnet: --subnet <1> <2> + - name: # <7> + value: + subnet: --subnet userDataSecret: - name: worker-user-data <2> + name: worker-user-data vmSize: Standard_D4s_v3 - vnet: -vnet <1> - zone: "1" <7> + vnet: -vnet + zone: "1" # <8> ifdef::infra[] - taints: <9> + taints: # <9> - key: node-role.kubernetes.io/infra effect: NoSchedule endif::infra[] @@ -148,14 +148,14 @@ ifndef::infra[] <3> Specify the infrastructure ID, node label, and region. endif::infra[] ifdef::infra[] -<2> Specify the `` node label. -<3> Specify the infrastructure ID, `` node label, and region. +<2> Specify the `infra` node label. +<3> Specify the infrastructure ID, `infra` node label, and region. endif::infra[] <4> Specify the image details for your compute machine set. If you want to use an Azure Marketplace image, see "Selecting an Azure Marketplace image". <5> Specify an image that is compatible with your instance type. The Hyper-V generation V2 images created by the installation program have a `-gen2` suffix, while V1 images have the same name without the suffix. <6> Specify the region to place machines on. -<7> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify. -<8> Optional: Specify custom tags in your machine set. Provide the tag name in `` field and the corresponding tag value in `` field. +<7> Optional: Specify custom tags in your machine set. Provide the tag name in `` field and the corresponding tag value in `` field. +<8> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify. ifdef::infra[] <9> Specify a taint to prevent user workloads from being scheduled on infra nodes. +