|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_aws/installing-azure-customizations.adoc |
| 4 | +// * installing/installing_aws/installing-azure-user-infra.adoc |
| 5 | + |
| 6 | +ifeval::["{context}" == "installing-azure-customizations"] |
| 7 | +:ipi: |
| 8 | +endif::[] |
| 9 | +ifeval::["{context}" == "installing-azure-user-infra"] |
| 10 | +:upi: |
| 11 | +endif::[] |
| 12 | + |
| 13 | +//mpytlak: The procedure differs depending on whether this module is used in an IPI or UPI assembly. |
| 14 | + |
| 15 | +:_content-type: PROCEDURE |
| 16 | +[id="installation-azure-marketplace-subscribe_{context}"] |
| 17 | += Selecting an Azure Marketplace image |
| 18 | +If you are deploying an {product-title} cluster using the Azure Marketplace offering, you must first obtain the Azure Marketplace image. The installation program uses this image to deploy worker nodes. When obtaining your image, consider the following: |
| 19 | + |
| 20 | +* While the images are the same, the Azure Marketplace publisher is different depending on your region. If you are located in North America, specify `redhat` as the publisher. If you are located in EMEA, specify `redhat-limited` as the publisher. |
| 21 | +* The offer includes a `rh-ocp-worker` SKU and a `rh-ocp-worker-gen1` SKU. The `rh-ocp-worker` SKU represents a Hyper-V generation version 2 VM image. The default instance types used in {product-title} are version 2 compatible. If you are going to use an instance type that is only version 1 compatible, use the image associated with the `rh-ocp-worker-gen1` SKU. The `rh-ocp-worker-gen1` SKU represents a Hyper-V version 1 VM image. |
| 22 | +
|
| 23 | +.Prerequisites |
| 24 | + |
| 25 | +* You have installed the Azure CLI client `(az)`. |
| 26 | +* Your Azure account is entitled for the offer and you have logged into this account with the Azure CLI client. |
| 27 | +
|
| 28 | +.Procedure |
| 29 | + |
| 30 | +. Display all of the available {product-title} images by running one of the following commands: |
| 31 | +** North America: |
| 32 | ++ |
| 33 | +-- |
| 34 | +[source,terminal] |
| 35 | +---- |
| 36 | +$ az vm image list --all --offer rh-ocp-worker --publisher redhat -o table |
| 37 | +---- |
| 38 | +.Example output |
| 39 | +[source,terminal] |
| 40 | +---- |
| 41 | +Offer Publisher Sku Urn Version |
| 42 | +------------- -------------- ------------------ -------------------------------------------------------------- -------------- |
| 43 | +rh-ocp-worker RedHat rh-ocp-worker RedHat:rh-ocp-worker:rh-ocpworker:4.8.2021122100 4.8.2021122100 |
| 44 | +rh-ocp-worker RedHat rh-ocp-worker-gen1 RedHat:rh-ocp-worker:rh-ocp-worker-gen1:4.8.2021122100 4.8.2021122100 |
| 45 | +---- |
| 46 | +-- |
| 47 | +** EMEA: |
| 48 | ++ |
| 49 | +-- |
| 50 | +[source,terminal] |
| 51 | +---- |
| 52 | +$ az vm image list --all --offer rh-ocp-worker --publisher redhat-limited -o table |
| 53 | +---- |
| 54 | +.Example output |
| 55 | +[source,terminal] |
| 56 | +---- |
| 57 | +Offer Publisher Sku Urn Version |
| 58 | +------------- -------------- ------------------ -------------------------------------------------------------- -------------- |
| 59 | +rh-ocp-worker redhat-limited rh-ocp-worker redhat-limited:rh-ocp-worker:rh-ocp-worker:4.8.2021122100 4.8.2021122100 |
| 60 | +rh-ocp-worker redhat-limited rh-ocp-worker-gen1 redhat-limited:rh-ocp-worker:rh-ocp-worker-gen1:4.8.2021122100 4.8.2021122100 |
| 61 | +---- |
| 62 | +-- |
| 63 | + |
| 64 | ++ |
| 65 | +[NOTE] |
| 66 | +==== |
| 67 | +Regardless of the version of {product-title} you are installing, the correct version of the Azure Marketplace image to use is 4.8.x. If required, as part of the installation process, your VMs are automatically upgraded. |
| 68 | +==== |
| 69 | +. Inspect the image for your offer by running one of the following commands: |
| 70 | +** North America: |
| 71 | ++ |
| 72 | +[source,terminal] |
| 73 | +---- |
| 74 | +$ az vm image show --urn redhat:rh-ocp-worker:rh-ocp-worker:<version> |
| 75 | +---- |
| 76 | +** EMEA: |
| 77 | ++ |
| 78 | +[source,terminal] |
| 79 | +---- |
| 80 | +$ az vm image show --urn redhat-limited:rh-ocp-worker:rh-ocp-worker:<version> |
| 81 | +---- |
| 82 | +. Review the terms of the offer by running one of the following commands: |
| 83 | +** North America: |
| 84 | ++ |
| 85 | +[source,terminal] |
| 86 | +---- |
| 87 | +$ az vm image terms show --urn redhat:rh-ocp-worker:rh-ocp-worker:<version> |
| 88 | +---- |
| 89 | +** EMEA: |
| 90 | ++ |
| 91 | +[source,terminal] |
| 92 | +---- |
| 93 | +$ az vm image terms show --urn redhat-limited:rh-ocp-worker:rh-ocp-worker:<version> |
| 94 | +---- |
| 95 | +. Accept the terms of the offering by running one of the following commands: |
| 96 | +** North America: |
| 97 | ++ |
| 98 | +[source,terminal] |
| 99 | +---- |
| 100 | +$ az vm image terms accept --urn redhat:rh-ocp-worker:rh-ocp-worker:<version> |
| 101 | +---- |
| 102 | +** EMEA: |
| 103 | ++ |
| 104 | +[source,terminal] |
| 105 | +---- |
| 106 | +$ az vm image terms accept --urn redhat-limited:rh-ocp-worker:rh-ocp-worker:<version> |
| 107 | +---- |
| 108 | +ifdef::ipi[] |
| 109 | +. Record the image details of your offer. You must update the `compute` section in the `install-config.yaml` file with values for `publisher`, `offer`, `sku`, and `version` before deploying the cluster. |
| 110 | +endif::ipi[] |
| 111 | +ifdef::upi[] |
| 112 | +. Record the image details of your offer. If you use the Azure Resource Manager (ARM) template to deploy your worker nodes, you can update `storageProfile.imageReference` by deleting the `id` parameter and adding the `offer`, `publisher`, `sku`, and `version` parameters using the values from your offer. |
| 113 | +endif::upi[] |
| 114 | + |
| 115 | +ifdef::ipi[] |
| 116 | +.Sample `install-config.yaml` file with the Azure Marketplace worker nodes |
| 117 | + |
| 118 | +[source,yaml] |
| 119 | +---- |
| 120 | +apiVersion: v1 |
| 121 | +baseDomain: example.com |
| 122 | +compute: |
| 123 | +- hyperthreading: Enabled |
| 124 | + name: worker |
| 125 | + platform: |
| 126 | + azure: |
| 127 | + type: Standard_D4s_v5 |
| 128 | + osImage: |
| 129 | + publisher: redhat |
| 130 | + offer: rh-ocp-worker |
| 131 | + sku: rh-ocp-worker |
| 132 | + version: 4.8.2021122100 |
| 133 | + replicas: 3 |
| 134 | +---- |
| 135 | +endif::ipi[] |
| 136 | + |
| 137 | +ifeval::["{context}" == "installing-azure-customizations"] |
| 138 | +:!ipi: |
| 139 | +endif::[] |
| 140 | +ifeval::["{context}" == "installing-azure-user-infra"] |
| 141 | +:!upi: |
| 142 | +endif::[] |
0 commit comments