---
# Azure Red Hat OpenShift on OpenShift 4
Work shop guide:
http://aroworkshop.io/
## Lab Environment (OpenShift Cluster)
Use this link to gain access to the work shop environment:
https://console-openshift-console.apps.d52c5it2.eastus2.aroapp.io/
## Gotchas / Things to be aware of
- We will be skipping a couple of sections in the workshop guide:
- Creating a cluster
- Logging and Metrics: subsections regarding Azure Monitor Integration
- PreReqs: When downloading the ARO Cli to a Mac you may run into a request to "unshallow" the git repos. Note that these commands take a few min, up to 5 to show progress. You can also try running the homebrew-cask command before the homebrew-core command.
- 2.3: Use a unique project name (good format would be workshop-arouserXX) where userXX is your username
- 2.3: In the create a project step instead of logging in with kubeadmin you will login via RHPDS-AAD with the username you selected below
- 2.4: When deploying the mongodb template instead of specifying -n openshift use the name of the project you created -n workshop-arouserXX also be sure to update the oc process command to point on the proper namespace (oc process workshop-arouserXX//mongodb)
- oc create -n workshop-arouserXX -f https://raw.githubusercontent.com/openshift/origin/4ea9e6c5961eb815c200df933eee30c48a5c9166/examples/db-templates/mongodb-persistent-template.json
- oc process mongodb-persistent \
-p MONGODB_USER=ratingsuser \
-p MONGODB_PASSWORD=ratingspassword \
-p MONGODB_DATABASE=ratingsdb \
-p MONGODB_ADMIN_PASSWORD=ratingspassword | oc create -f -
- 2.5: when creating environment variables Go to Project —> scroll down to Inventory and select Deployment Configs —> select rating-api —> select environment
- 2.5: When adding the URI environment variable be sure to change the workshop component in the URI to reflect the project you created (workshop-arouserXX)
- example: MONGODB_URI=mongodb://ratingsuser:ratingspassword@mongodb.workshop-arouser48.svc.cluster.local:27017/ratingsdb
- 2.5/2.6: Fork Github and Setup GitHub webhook - optional
- 2.6: use this command instead "oc set env dc/rating-web API=http://rating-api:8080"
- 2.7: When creating a network policy be sure to change the namespace to reflect the project you are working in (workshop-arouserXX)
- 3.2: Use unique project name like "oc new-project ostoy-arouserXX"
- 3.5: Switch to admin view
- 3.7: Networking, update your hostname to the appropriate project like so "ostoy-microservice-svc.ostoy-arouserXX.svc.cluster.local"
## User Accounts - openshift
| USER | NAME |
| -------------------------- | ------ |
| arouser1@azure.opentlc.com | |
| arouser2@azure.opentlc.com | |
| arouser3@azure.opentlc.com |kiran |
| arouser4@azure.opentlc.com | |
| arouser5@azure.opentlc.com | |
| arouser6@azure.opentlc.com | |
| arouser7@azure.opentlc.com | |
| arouser8@azure.opentlc.com | |
| arouser9@azure.opentlc.com | |
| arouser10@azure.opentlc.com | |
| arouser11@azure.opentlc.com | |
| arouser12@azure.opentlc.com | |
| arouser13@azure.opentlc.com | |
| arouser14@azure.opentlc.com | |
| arouser15@azure.opentlc.com | |
| arouser16@azure.opentlc.com | |
| arouser17@azure.opentlc.com | |
| arouser18@azure.opentlc.com | |
| arouser19@azure.opentlc.com | |
| arouser20@azure.opentlc.com | |
| arouser21@azure.opentlc.com | |
| arouser22@azure.opentlc.com | |
| arouser23@azure.opentlc.com | |
| arouser24@azure.opentlc.com | |
| arouser25@azure.opentlc.com | |
| arouser26@azure.opentlc.com | |
| arouser27@azure.opentlc.com | |
| arouser28@azure.opentlc.com | |
| arouser29@azure.opentlc.com | |
| arouser30@azure.opentlc.com | |
| arouser31@azure.opentlc.com | |
| arouser32@azure.opentlc.com | |
| arouser33@azure.opentlc.com | |
| arouser34@azure.opentlc.com | |
| arouser35@azure.opentlc.com | |
| arouser36@azure.opentlc.com | |
| arouser37@azure.opentlc.com | |
| arouser38@azure.opentlc.com | |
| arouser39@azure.opentlc.com | |
| arouser40@azure.opentlc.com | |
| arouser41@azure.opentlc.com | |
| arouser42@azure.opentlc.com | Raj |
| arouser43@azure.opentlc.com | |
| arouser44@azure.opentlc.com | Mark |
| arouser45@azure.opentlc.com | Sathi |
| arouser46@azure.opentlc.com | Balaji |
| arouser47@azure.opentlc.com | Alex |
| arouser48@azure.opentlc.com | Alex |
| arouser49@azure.opentlc.com | Mary |