OpenShift on Azure: Difference between revisions
Jump to navigation
Jump to search
Line 25: | Line 25: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Register the Microsoft.RedHatOpenShift resource provider: | Register the Microsoft.RedHatOpenShift [[Azure_Concepts#Resource_Provider|resource provider]]: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
az provider register -n Microsoft.RedHatOpenShift --wait | az provider register -n Microsoft.RedHatOpenShift --wait | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Create the Cluster=== | ===Create the Cluster=== |
Revision as of 23:14, 18 November 2020
External
Internal
Installation
Prerequisites
- Install Azure CLI, as shown here: Azure CLI | Installation.
- Azure Red Hat OpenShift requires a minimum of 40 cores. May need to increase the quota.
Procedure
Create the Resource Group
The resource group can be created from the console, and it will encapsulate resources required by, and dedicated to the OpenShift cluster. The name of the resource group should be derived from the name of the cluster by adding the "-rg" postfix. There will be a one-to-one relationship between the resource group, cluster and ancillary resources. Select the appropriate region and set the corresponding LOCATION environment variable.
export CLUSTER_NAME=platform-cloud-aro-01
export RESOURCE_GROUP="${CLUSTER_NAME}-rg"
export LOCATION=eastus2
Register Resource Providers
export SUBSCRIPTION_ID="..."
az account set --subscription ${SUBSCRIPTION_ID}
Register the Microsoft.RedHatOpenShift resource provider:
az provider register -n Microsoft.RedHatOpenShift --wait
Create the Cluster
export SUBSCRIPTION_ID="..."
az account set --subscription ${SUBSCRIPTION_ID}
az aro list-credentials --name ${CLUSTER_NAME} --resource-group ${RESOURCE_GROUP}
CLI Support
Azure CLI has an OpenShift extension, with subcommands aimed at managing Azure Red Hat OpenShift clusters.
az aro create|list|delete|list-credentials|show|update|wait
List OpenShift Clusters
az aro list