OpenShift on Azure: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
SUBSCRIPTION_ID=...
SUBSCRIPTION_ID=...
CLUSTER_GROUP=platform-cloud
RESOURCE_GROUP=${CLUSTER_GROUP}-01
CLUSTER_NAME=${CLUSTER_GROUP}-01
</syntaxhighlight>
</syntaxhighlight>


Line 31: Line 27:
az account set --subscription ${SUBSCRIPTION_ID}
az account set --subscription ${SUBSCRIPTION_ID}


az aro list-credentials --name $CLUSTER --resource-group $RESOURCEGROUP
az aro list-credentials --name ${CLUSTER_NAME} --resource-group ${RESOURCE_GROUP}
</syntaxhighlight>
</syntaxhighlight>



Revision as of 23:09, 18 November 2020

External

Internal

Installation

Prerequisites

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.

CLUSTER_NAME=platform-cloud-aro-01
RESOURCE_GROUP="${CLUSTER_NAME}-rg"
LOCATION=eastus2

Create the Cluster

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