1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/installation-azure-user-infra-deploying-rhcos.adoc
2024-11-07 09:31:52 +00:00

74 lines
2.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * installing/installing_azure/installing-azure-user-infra.adoc
// * installing/installing_azure_stack_hub/installing-azure-stack-hub-user-infra.adoc
// * installing/installing_azure/installing-restricted-networks-azure-user-provisioned.adoc
ifeval::["{context}" == "installing-azure-user-infra"]
:azure:
:cp: Azure
endif::[]
ifeval::["{context}" == "installing-azure-stack-hub-user-infra"]
:ash:
:cp: Azure Stack Hub
endif::[]
ifeval::["{context}" == "installing-restricted-networks-azure-user-provisioned"]
:azure:
:cp: Azure
endif::[]
:_mod-docs-content-type: PROCEDURE
[id="installation-azure-user-infra-deploying-rhcos_{context}"]
= Deploying the {op-system} cluster image for the {cp} infrastructure
You must use a valid {op-system-first} image for Microsoft {cp} for your
{product-title} nodes.
.Prerequisites
* Store the {op-system} virtual hard disk (VHD) cluster image in an Azure storage container.
* Store the bootstrap Ignition config file in an Azure storage container.
.Procedure
. Copy the template from the *ARM template for image storage* section of
this topic and save it as `02_storage.json` in your cluster's installation directory. This template
describes the image storage that your cluster requires.
. Export the {op-system} VHD blob URL as a variable:
+
[source,terminal]
----
$ export VHD_BLOB_URL=`az storage blob url --account-name ${CLUSTER_NAME}sa --account-key ${ACCOUNT_KEY} -c vhd -n "rhcos.vhd" -o tsv`
----
. Deploy the cluster image:
+
[source,terminal]
----
$ az deployment group create -g ${RESOURCE_GROUP} \
--template-file "<installation_directory>/02_storage.json" \
--parameters vhdBlobURL="${VHD_BLOB_URL}" \ <1>
--parameters baseName="${INFRA_ID}" \ <2>
--parameters storageAccount="${CLUSTER_NAME}sa" \ <3>
--parameters architecture="<architecture>" <4>
----
<1> The blob URL of the {op-system} VHD to be used to create master and worker machines.
<2> The base name to be used in resource names; this is usually the cluster's infrastructure ID.
<3> The name of your Azure storage account.
<4> Specify the system architecture. Valid values are `x64` (default) or `Arm64`.
ifeval::["{context}" == "installing-azure-user-infra"]
:!azure:
:!cp: Azure
endif::[]
ifeval::["{context}" == "installing-azure-stack-hub-user-infra"]
:!ash:
:!cp: Azure Stack Hub
endif::[]
ifeval::["{context}" == "installing-restricted-networks-azure-user-provisioned"]
:!azure:
:!cp: Azure
endif::[]