1. Getting started
Task 1.1: Web IDE
The first thing we’re going to do is to explore our lab environment and get in touch with the different components.
The namespace with the name corresponding to your username is going to be used for all the hands-on labs. And you will be using the ArgoCD webconsole, to verify what resources and objects Argo CD created for you.
Note
You can also use your local installation of the cli tools. Make sure you completed the setup before you continue with this lab.Note
The URL and Credentials to the Web IDE will provided by the teacher. Use Chrome for the best experience.Once you’re successfully logged into the web IDE open a new Terminal by hitting CTRL + SHIFT + ¨ or clicking the Menu button –> Terminal –> new Terminal and check the installed ocversion by executing the following command:
oc version
The Web IDE Pod consists of the following tools:
- oc
- kubectl
- kustomize
- helm
- kubectx
- kubens
- tekton cli
- odo
- argocd
The files in the home directory under /home/project are stored in a persistence volume, so please make sure to store all your persistence data in this directory.
Task 1.1.1: Local Workspace Directory
During the lab, you’ll be using local files (eg. YAML resources) which will be applied in your lab project.
Create a new folder for your <workspace> in your Web IDE (for example argocd-training under /home/project/argocd-training). Either you can create it with right-mouse-click -> New Folder or in the Web IDE terminal.
mkdir argocd-training && cd argocd-training
Task 1.1.2: Login to ArgoCD
You can access Argo CD via the Web UI. Open your browser and navigate to https://argocd.training.cluster.acend.ch and login with the credentials provided by your trainer.
Task 1.1.3: Lab Setup
Most of the labs will be done inside the OpenShift project with your username. Verify that your oc tool is configured to point to the right project:
oc project
Using project "<username>" on server "https://<theClusterAPIURL>".
The returned project name should correspond to your username.