In this lab you will be deploying the Log Analytics agent for Azure in OpenShift to allow you to be able to monitor OpenShift from the Azure portal.
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:
Configure Cloud Shell for Bash using the Advanced Settings. Use the existing subscription, resource group, and storage account. If your storage account does not populate, make sure that the South Central 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 so you can connect to the VMs using SSH. First make the
.sshdirectoy, if it isn’t already there, with the
wgetto pull down the SSH keys using these links:
Change the permissions of the files to
- Run the Lab Prep Subscriptions
You will need to connect to each VM using SSH and run a prep script.
After you connect to a VM using SSH, you will first need to install
Next, you will need to download the associated script for the node found in the Git repo for the lab.
The link is: https://raw.githubusercontent.com/linuxacademy/content-openshift-origin-azure/master/scripts/
bastionVM-0it would be
masterVM-0it would be
infraVM-0it would be
appnodeVM-0it would be
Once the download completes, you will need to make the script executable.
Finally, you would run the script. Make sure you use
sudoor the script will fail.
- Install OpenShift
Use Ansible to run the
deploy_cluster.ymlplaybooks to install OpenShift. Run these from the Bastion Host.
- Deploy the OMS Agent in OpenShift
Log in to the master node and use the OpenShift CLI tools to:
ocp-omsagent.yamlfile from the Git repo:
Create a service account named
Add the cluster role
cluster-readerto the service account.
Set the Security Context Constraint to
privilegedfor the service account.
Deploy the agent using the