Este contenido no está disponible en el idioma seleccionado.
Chapter 2. Configuring an Azure Stack Hub account
Before you can install OpenShift Container Platform, you must configure a Microsoft Azure account.
All Azure resources that are available through public endpoints are subject to resource name restrictions, and you cannot create resources that use certain terms. For a list of terms that Azure restricts, see Resolve reserved resource name errors in the Azure documentation.
2.1. Azure Stack Hub account limits Copiar enlaceEnlace copiado en el portapapeles!
The OpenShift Container Platform cluster uses a number of Microsoft Azure Stack Hub components, and the default Quota types in Azure Stack Hub affect your ability to install OpenShift Container Platform clusters.
The following table summarizes the Azure Stack Hub components whose limits can impact your ability to install and run OpenShift Container Platform clusters.
Component | Number of components required by default | Description | ||||||
---|---|---|---|---|---|---|---|---|
vCPU | 56 | A default cluster requires 56 vCPUs, so you must increase the account limit. By default, each cluster creates the following instances:
Because the bootstrap, control plane, and worker machines use To deploy more worker nodes, enable autoscaling, deploy large workloads, or use a different instance type, you must further increase the vCPU limit for your account to ensure that your cluster can deploy the machines that you require. | ||||||
VNet | 1 | Each default cluster requires one Virtual Network (VNet), which contains two subnets. | ||||||
Network interfaces | 7 | Each default cluster requires seven network interfaces. If you create more machines or your deployed workloads create load balancers, your cluster uses more network interfaces. | ||||||
Network security groups | 2 | Each cluster creates network security groups for each subnet in the VNet. The default cluster creates network security groups for the control plane and for the compute node subnets:
| ||||||
Network load balancers | 3 | Each cluster creates the following load balancers:
If your applications create more Kubernetes | ||||||
Public IP addresses | 2 | The public load balancer uses a public IP address. The bootstrap machine also uses a public IP address so that you can SSH into the machine to troubleshoot issues during installation. The IP address for the bootstrap node is used only during installation. | ||||||
Private IP addresses | 7 | The internal load balancer, each of the three control plane machines, and each of the three worker machines each use a private IP address. |
2.2. Configuring a DNS zone in Azure Stack Hub Copiar enlaceEnlace copiado en el portapapeles!
To successfully install OpenShift Container Platform on Azure Stack Hub, you must create DNS records in an Azure Stack Hub DNS zone. The DNS zone must be authoritative for the domain. To delegate a registrar’s DNS zone to Azure Stack Hub, see Microsoft’s documentation for Azure Stack Hub datacenter DNS integration.
2.3. Required Azure Stack Hub roles Copiar enlaceEnlace copiado en el portapapeles!
Your Microsoft Azure Stack Hub account must have the following roles for the subscription that you use:
-
Owner
To set roles on the Azure portal, see the Manage access to resources in Azure Stack Hub with role-based access control in the Microsoft documentation.
2.4. Creating a service principal Copiar enlaceEnlace copiado en el portapapeles!
Because OpenShift Container Platform and its installation program create Microsoft Azure resources by using the Azure Resource Manager, you must create a service principal to represent it.
Prerequisites
- Install or update the Azure CLI.
- Your Azure account has the required roles for the subscription that you use.
Procedure
Register your environment:
az cloud register -n AzureStackCloud --endpoint-resource-manager <endpoint>
$ az cloud register -n AzureStackCloud --endpoint-resource-manager <endpoint>
1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Specify the Azure Resource Manager endpoint, `https://management.<region>.<fqdn>/`.
See the Microsoft documentation for details.
Set the active environment:
az cloud set -n AzureStackCloud
$ az cloud set -n AzureStackCloud
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update your environment configuration to use the specific API version for Azure Stack Hub:
az cloud update --profile 2019-03-01-hybrid
$ az cloud update --profile 2019-03-01-hybrid
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to the Azure CLI:
az login
$ az login
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you are in a multitenant environment, you must also supply the tenant ID.
If your Azure account uses subscriptions, ensure that you are using the right subscription:
View the list of available accounts and record the
tenantId
value for the subscription you want to use for your cluster:az account list --refresh
$ az account list --refresh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow View your active account details and confirm that the
tenantId
value matches the subscription you want to use:az account show
$ az account show
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Ensure that the value of the
tenantId
parameter is the correct subscription ID.
If you are not using the right subscription, change the active subscription:
az account set -s <subscription_id>
$ az account set -s <subscription_id>
1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Specify the subscription ID.
Verify the subscription ID update:
az account show
$ az account show
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Record the
tenantId
andid
parameter values from the output. You need these values during the OpenShift Container Platform installation. Create the service principal for your account:
az ad sp create-for-rbac --role Contributor --name <service_principal> \ --scopes /subscriptions/<subscription_id>
$ az ad sp create-for-rbac --role Contributor --name <service_principal> \
1 --scopes /subscriptions/<subscription_id>
2 --years <years>
3 Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Record the values of the
appId
andpassword
parameters from the previous output. You need these values during OpenShift Container Platform installation.
2.5. Next steps Copiar enlaceEnlace copiado en el portapapeles!
Install an OpenShift Container Platform cluster:
- Installing a cluster quickly on Azure Stack Hub.
- Install an OpenShift Container Platform cluster on Azure Stack Hub with user-provisioned infrastructure by following Installing a cluster on Azure Stack Hub using ARM templates.