title | description | author | ms.author | ms.topic | ms.date | ms.custom |
---|---|---|---|---|---|---|
IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift |
Shows you how to quickly stand up IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift. |
KarlErickson |
haiche |
quickstart |
01/24/2023 |
template-overview, devx-track-java, devx-track-javaee, devx-track-javaee-liberty, devx-track-javaee-liberty-aro |
Quickstart: Deploy IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift using the Azure portal
This article shows you how to quickly stand up IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift (ARO) using the Azure portal.
-
[!INCLUDE quickstarts-free-trial-note]
-
A Red Hat account with complete profile. If you don't have one, you can sign up for a free developer subscription through the Red Hat Developer Subscription for Individuals.
-
Use Azure Cloud Shell using the Bash environment; make sure the Azure CLI version is 2.43.0 or higher.
-
Ensure the Azure identity you use to sign in has either the Contributor role and the User Access Administrator role or the Owner role in the current subscription. For an overview of Azure roles, see What is Azure role-based access control (Azure RBAC)?
-
ARO requires a minimum of 40 cores to create and run an OpenShift cluster. Ensure your subscription has sufficient quota.
The Azure Marketplace offer you're going to use in this article requires a Red Hat pull secret. This section shows you how to get a Red Hat pull secret for ARO. To learn about what a Red Hat pull secret is and why you need it, see the Get a Red Hat pull secret section of Tutorial: Create an Azure Red Hat OpenShift 4 cluster. To get the pull secret for use, follow the steps in this section.
Use your Red Hat account to sign in to the OpenShift cluster manager portal, by visiting the Red Hat OpenShift Hybrid Cloud Console. You may need to accept more terms and update your account as shown in the following screenshot. Use the same password as when you created the account.
:::image type="content" source="media/liberty-on-aro/redhat-account-complete-profile.png" alt-text="Screenshot of Red Hat Update Your Account page." lightbox="media/liberty-on-aro/redhat-account-complete-profile.png":::
After you sign in, select OpenShift then Downloads. Select the All categories dropdown list and then select Tokens. Under Pull secret, select Copy or Download to get the value, as shown in the following screenshot.
:::image type="content" source="media/liberty-on-aro/redhat-console-portal-pull-secret.png" alt-text="Screenshot of Red Hat console portal showing the pull secret." lightbox="media/liberty-on-aro/redhat-console-portal-pull-secret.png":::
The following content is an example that was copied from the Red Hat console portal, with the auth codes replaced with xxxx...xxx
.
{"auths":{"cloud.openshift.com":{"auth":"xxxx...xxx","email":"contoso-user@contoso.com"},"quay.io":{"auth":"xxx...xxx","email":"contoso-user@test.com"},"registry.connect.redhat.com":{"auth":"xxxx...xxx","email":"contoso-user@contoso.com"},"registry.redhat.io":{"auth":"xxxx...xxx","email":"contoso-user@contoso.com"}}}
Save the secret to a file so you can use it later.
The Azure Marketplace offer you're going to use in this article requires an Azure Active Directory (Azure AD) service principal to deploy your Azure Red Hat OpenShift cluster. The offer assigns the service principal with proper privileges during deployment time, with no role assignment needed. If you have a service principal ready to use, skip this section and move on to the next section, where you'll deploy the offer.
Use the following steps to deploy a service principal and get its Application (client) ID and secret from the Azure portal. For more information, see Create and use a service principal to deploy an Azure Red Hat OpenShift cluster.
Note
You must have sufficient permissions to register an application with your Azure AD tenant. If you run into a problem, check the required permissions to make sure your account can create the identity. For more information, see the Permissions required for registering an app section of Use the portal to create an Azure AD application and service principal that can access resources.
-
Sign in to your Azure account through the Azure portal.
-
Select Azure Active Directory.
-
Select App registrations.
-
Select New registration.
-
Name the application, for example "liberty-on-aro-app". Select a supported account type, which determines who can use the application. After setting the values, select Register, as shown in the following screenshot. It takes several seconds to provision the application. Wait for the deployment to complete before proceeding.
:::image type="content" source="media/liberty-on-aro/azure-portal-create-service-principal.png" alt-text="Screenshot of Azure portal showing the Register an application page." lightbox="media/liberty-on-aro/azure-portal-create-service-principal.png":::
-
Save the Application (client) ID from the overview page, as shown in the following screenshot. Hover the pointer over the value (redacted in the screenshot) and select the copy icon that appears. The tooltip will say Copy to clipboard. Be careful to copy the correct value, since the other values in that section also have copy icons. Save the Application ID to a file so you can use it later.
:::image type="content" source="media/liberty-on-aro/azure-portal-obtain-service-principal-client-id.png" alt-text="Screenshot of Azure portal showing service principal client ID." lightbox="media/liberty-on-aro/azure-portal-obtain-service-principal-client-id.png":::
-
Create a new client secret by following these steps:
- Select Certificates & secrets.
- Select Client secrets, then New client secret.
- Provide a description of the secret and a duration. When you're done, select Add.
- After the client secret is added, the value of the client secret is displayed. Copy this value because you won't be able to retrieve it later.
You've now created your Azure AD application, service principal, and client secret.
The steps in this section direct you to deploy IBM WebSphere Liberty or Open Liberty on Azure Red Hat OpenShift.
The following steps show you how to find the offer and fill out the Basics pane.
-
In the search bar at the top of the Azure portal, enter Liberty. In the auto-suggested search results, in the Marketplace section, select IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift, as shown in the following screenshot.
:::image type="content" source="media/liberty-on-aro/marketplace-search-results.png" alt-text="Screenshot of Azure portal showing IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift in search results." lightbox="media/liberty-on-aro/marketplace-search-results.png":::
You can also go directly to the offer with this portal link.
-
On the offer page, select Create.
-
On the Basics pane, ensure that the value shown in the Subscription field is the same one that has the roles listed in the prerequisites section.
-
The offer must be deployed in an empty resource group. In the Resource group field, select Create new and fill in a value for the resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, abc1228rg.
-
Under Instance details, select the region for the deployment. For a list of Azure regions where OpenShift operates, see Regions for Red Hat OpenShift 4.x on Azure.
The following steps show you how to fill out the ARO pane shown in the following screenshot:
:::image type="content" source="media/liberty-on-aro/azure-portal-liberty-on-aro-configure-cluster.png" alt-text="Screenshot of Azure portal showing IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift ARO pane." lightbox="media/liberty-on-aro/azure-portal-liberty-on-aro-configure-cluster.png":::
-
Under Create a new cluster, select Yes.
-
Under Provide information to create a new cluster, for Red Hat pull secret, fill in the Red Hat pull secret that you obtained in the Get a Red Hat pull secret section. Use the same value for Confirm secret.
-
Fill in Service principal client ID with the service principal Application (client) ID that you obtained in the Create an Azure Active Directory Service Principal from the Azure portal section.
-
Fill in Service principal client secret with the service principal Application secret that you obtained in the Create an Azure Active Directory Service Principal from the Azure portal section. Use the same value for Confirm secret.
The following steps show you how to fill out the Operator and application pane shown in the following screenshot, and start the deployment.
:::image type="content" source="media/liberty-on-aro/azure-portal-liberty-on-aro-operator-and-application.png" alt-text="Screenshot of Azure portal showing IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift Operator and application pane." lightbox="media/liberty-on-aro/azure-portal-liberty-on-aro-operator-and-application.png":::
-
Under IBM supported?, select Yes.
[!NOTE] This quickstart deploys the IBM-supported WebSphere Liberty Operator, but you can select No to deploy the Open Liberty Operator instead.
-
Leave the default option of No for Deploy an application?.
[!NOTE] This quickstart doesn't deploy an application, but you can select Yes for Deploy an application? if you prefer.
-
Select Review + create. Ensure that the green Validation Passed message appears at the top. If the message doesn't appear, fix any validation problems and then select Review + create again.
-
Select Create.
-
Track the progress of the deployment on the Deployment is in progress page.
Depending on network conditions and other activity in your selected region, the deployment may take up to 40 minutes to complete.
The steps in this section show you how to verify that the deployment has successfully completed.
If you navigated away from the Deployment is in progress page, the following steps will show you how to get back to that page. If you're still on the page that shows Your deployment is complete, you can skip to step 5.
-
In the upper left corner of any portal page, select the hamburger menu and then select Resource groups.
-
In the box with the text Filter for any field, enter the first few characters of the resource group you created previously. If you followed the recommended convention, enter your initials, then select the appropriate resource group.
-
In the navigation pane, in the Settings section, select Deployments. You'll see an ordered list of the deployments to this resource group, with the most recent one first.
-
Scroll to the oldest entry in this list. This entry corresponds to the deployment you started in the preceding section. Select the oldest deployment, as shown in the following screenshot.
:::image type="content" source="media/liberty-on-aro/azure-portal-liberty-on-aro-deployments.png" alt-text="Screenshot of Azure portal showing IBM WebSphere Liberty and Open Liberty on Azure Red Hat OpenShift deployments with the oldest deployment highlighted." lightbox="media/liberty-on-aro/azure-portal-liberty-on-aro-deployments.png":::
-
In the navigation pane, select Outputs. This list shows the output values from the deployment, which includes some useful information.
-
Open Azure Cloud Shell and paste the value from the cmdToGetKubeadminCredentials field. You'll see the admin account and credential for logging in to the OpenShift cluster console portal. The following content is an example of an admin account.
user@Azure:~$ az aro list-credentials -g abc1228rg -n clusterf9e8b9 { "kubeadminPassword": "xxxxx-xxxxx-xxxxx-xxxxx", "kubeadminUsername": "kubeadmin" }
-
Paste the value from the clusterConsoleUrl field into an Internet-connected web browser, and then press Enter. Fill in the admin user name and password, which you can find in the list of installed IBM WebSphere Liberty operators, as shown in the following screenshot.
:::image type="content" source="media/liberty-on-aro/redhat-openshift-cluster-console-portal.png" alt-text="Screenshot of Red Hat OpenShift cluster console portal showing Installed Operators page." lightbox="media/liberty-on-aro/redhat-openshift-cluster-console-portal.png":::
You can use the output commands to create an application or manage the cluster.
If you're not going to continue to use the OpenShift cluster, navigate back to your working resource group. At the top of the page, under the text Resource group, select the resource group. Then, select Delete resource group.
Learn more about deploying IBM WebSphere family on Azure by following these links:
[!div class="nextstepaction"] What are solutions to run the IBM WebSphere family of products on Azure?