Deploying OpenShift Resources to Azure

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this lab you will be deploying resources for your OpenShift installation using an Azure Resource Manager (ARM) template from the git repo for this lab. You will need to deploy using the Azure CLI tools, so you will need to configure your cloud shell and use the bash terminal for this lab. After you have deployed your resources, you should have all the resources necessary for your OpenShift installation.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure Cloud Shell

Set up Cloud Shell by clicking the Cloud Shell button in the top-right corner of the screen:

"Azure Cloud Shell"

Configure Cloud Shell for Bash using Advanced Settings. Use the same Cloud Shell region as your lab provided storage container. Use the existing subscription, resource group, and storage account. If your storage account does not populate, make sure that the West US region is selected. To make the file share, choose Create new and specify okdcloudshell as the new file share.

Download SSH Keys for the Lab

You will need to pull down the SSH keys to connect to the VMs using SSH. First, make the .ssh directory, if it isn’t already there, with the mkdir command.

Then cd into the .ssh directory.

Now, use wget to pull down the SSH keys using these links:

https://raw.githubusercontent.com/linuxacademy/content-openshift-origin-azure/master/ssh/id_rsa
https://raw.githubusercontent.com/linuxacademy/content-openshift-origin-azure/master/ssh/id_rsa.pub

Change the permission to the files to 600.

Deploy OpenShift Resources

Deploy the resources for the OpenShift installation using an ARM template from the lab’s Git repo. The URL to use is:

https://raw.githubusercontent.com/linuxacademy/content-openshift-origin-azure/master/ccDeploy.json

You will need to use Azure CLI to deploy the template.

Once the resources have been deployed, connect to the bastion host using SSH confirm it is working.

Reset SSH public key for each VM

Reset the SSH public key by going to the VM and going to the "Reset password" section of Support + Troubleshooting. Select Reset SSH public key. Next enter the username azureuserand the contents of your id_rsa.pub file you downloaded in Task 2.

"Reset SSH public key"

Additional Resources

A developer by the name of Wichita, who you befriended earlier in the day, popped into your office to warn you that the boss is on a rampage! He just got chewed out in a meeting with the top brass, who were not happy with the progress that has been made so far with the super-secret project. They are expecting to see more than just a key vault deployed. We need to get the resources for OpenShift deployed and fast. Use the Azure CLI Tools to deploy the Azure Resource Manager template you created to deploy all the resources needed with one fell swoop.

UPDATE: Use West US for this lab.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!