Skip to content

jstanesic/intro_to_devops_exam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 

Repository files navigation

intro_to_devops_exam

Configuring your VM to access internal OpenShit

As user root execute the following command to add another line to your /etc/hosts file

echo "10.10.68.126 console-openshift-console.apps-crc.testing api.crc.testing api.crc.testing canary-openshift-ingress-canary.apps-crc.testing console-openshift-console.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing downloads-openshift-console.apps-crc.testing oauth-openshift.apps-crc.testing registry.apps.vuacloud.vua.cloud" >> /etc/hosts

To switch to user root execute the following command, password is centos:

su -

Accesing the console

URL to console is: https://console-openshift-console.apps-crc.testing Accept and ignore certificate errors. image

You should have received username and password on your emails.

Installing oc tool

To download the oc tool log in to the OpenShift cluster. Click on the ? question mark in the top right corner. Select Command line tools. image

Select Download oc tool for Linux for x86_64

image

File called oc.tar will be downloaded under /home/student/ directory.

Execute the following commands to be able to use the oc tool:

tar -xf oc.tar
rm oc.tar
chmod ugo+x oc
su -
mv /home/student/oc /usr/bin/oc
oc

image

To login trough CLI, use the following command:

oc login -u <username>

You will be prompted for a password.

Disk space issues

If during the exam you run into an issue that you are missing disk space you can do the following:

# Remove ALL containers and ALL images
podman rmi -a -f
# Remove cache of packages
rm -rf /var/cache/PackageKit
# Remove Google Chrome
su -
dnf remove google-chrome

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published