OPENSHIFT- COMMANDS
Jun 18, 2023
LOGIN TO RHEL OPENSHIFT CLUSTER:
BEFORE START:
$ lab install-troubleshoot start
Source the classroom configuration file that is accessible at /usr/local/etc/
ocp4.config.
$ source /usr/local/etc/ocp4.config
$ oc login -u kubeadmin -p ${RHT_OCP4_KUBEADM_PASSWD} https://api.ocp4.example.com:6443
AFTER COMPLETION: RUn the below command.
$ lab install-troubleshoot finish
#1. Enter inside project to diagnose or check pods.
$ oc project <<Project_Name>>
#2. Verify whether any of your nodes are close to using all of the CPU and memory
# available to them.
$ oc adm top node
#3. List all pods inside the openshift-image-registry project
$ oc get pod -n openshift-image-registry