Environment Setup
Hands-on Lab Environment
This hands-on lab will be based on two OpenShift clusters. The first one has been already installed with OpenShift 4 Demo
provided by RHPDS
(https://demo.redhat.com), and the second one will be installed from ACM following the steps in this lab. Both Openshift clusters will run on Amazon Web Sservices public cloud:
-
Cluster
local-cluster
: It has been already installed. In this cluster you will install ACM/GitOps Operators and deploy applications. -
Cluster
rhte2023-cluster01
: You will install the second Openshift cluster and deploy applications.
Tested versions:
|
Also, the following CLI tools are required for running the exercises in this hands-on.
Please have them installed and configured before you get started.
Tool | macOS | Linux/Fedora |
---|---|---|
|
||
|
||
|
You can launch an embedded command line terminal instance through the Web Terminal Operator. This terminal instance is preinstalled with common CLI tools for interacting with the cluster, such as oc, kubectl,odo, kn, tkn, helm, kubens, subctl, and kubectx. No argocd binaries are included. |
Switching context between clusters
In order to easily switch between Openshift clusters in this lab, we will create a new context for the local-cluster.
-
Login into the local-cluster
Cluster admin user is opentlc-mgr instead of kubeadmin. |
oc login -u kubeadmin -p <password> --insecure-skip-tls-verify https://api.<your_cluster>:6443
-
Rename the current context to
acm
oc config rename-context $(oc config current-context) acm
-
List
acm
context
oc config get-contexts acm
-
Check the new oc context works properly
oc --context acm get nodes
Hands-on Lab Git repository
You might fork the hands-on lab Git
repository into your Github
account as follows:
On GitHub.com, navigate to the https://github.com/xbryan1/rhte-2023-acm-apps repository.
In the top-right corner of the page, click Fork.
After it has been forked, clone it and change directory to the rhte-2023-acm-apps/rhte2023/
folder
git clone https://github.com/<your_github_account>/rhte-2023-acm-apps
cd rhte-2023-acm-apps/rhte2023/