Cloud Experts Documentation

Azure Service Operator V1 in ARO

This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.

The Azure Service Operator (ASO) provides Custom Resource Definitions (CRDs) for Azure resources that can be used to create, update, and delete Azure services from an OpenShift cluster.

This example uses ASO V1, which has now been replaced by ASO V2. ASO V2 does not (as of 5/19/2022) yet have an entry in the OCP OperatorHub, but is functional and should be preferred for use, especially if V1 isn’t already installed on a cluster. MOBB has documented the [install of ASO V2 on ROSA]. MOBB has not tested running the two in parallel.

Prerequisites

Prepare your Azure Account and ARO Cluster

  1. Set the following environment variables:

    Note: modify the cluster name, region and resource group to match your cluster

  2. Create a Service Principal with Contributor permissions to your subscription:

    Note: You may want to lock this down to a specific resource group.

  3. Create a secret containing your Service Principal credentials:

  4. Deploy the ASO Operator:

Deploy an Azure Redis Cache

  1. Create a Project:

  2. Allow the redis app to run as any user:

  3. Create a random string to use as the unique redis hostname:

  4. Deploy a Redis service using the ASO Operator and an example application

  5. Wait for Redis to be ready

    This may take 10 to 15 minutes.

    the output should eventually show the following:

  6. Get the URL of the example app

  7. Browse to the URL provided by the previous command and validate that the app is working

screenshot of voting app

Cleanup

  1. Delete the project containing the demo app

Interested in contributing to these docs?

Collaboration drives progress. Help improve our documentation The Red Hat Way.

Red Hat logo LinkedIn YouTube Facebook Twitter

Products

Tools

Try, buy & sell

Communicate

About Red Hat

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Subscribe to our newsletter, Red Hat Shares

Sign up now
© 2023 Red Hat, Inc.