- Go to https://console-openshift-console.apps.awsopenshift.ne-innovation.com and login with oktaidp
- Create your account using Accenture ID and Sign in to the application
- Click on the ? Icon and select Command Line Tools
- Download the oc CLI as per your OS and extract the zipped file to a directory
- Set path environment variables
-
Login to OpenShift OC Login
-
Copy login command (Top right click on ? mark and then select Command Line Tool) and then after click on Copy Login Command.
-
Open Command Line or Terminal and paste the login command.
-
Frequently used OC commands
oc version- Check OC CLI Versionoc status- Check the statusoc projects- To see available projectsoc new-project acctrainings-firstName- Create new project. Replace firstName with your name.oc projects- check again the project whether it's createdoc new-app fabric8/s2i-java:latest-java11~https://github.com/acc-trainings/customer-api.git#customer-api-rahul --name=customer-api- Create new app under your project.oc get services- To get servicesoc get pods- To check created podsoc get routes- See available routes for your service.oc expose svc/customer-api- Expose/create route for your application.oc get route- This will give you route to access your deployed application.http://copyYourUrl/customer-api/swagger-ui.htmlcopy your url and add and hit on the browser.oc get pods- Get the pod nameoc logs pod enterYourPodName- To check logsoc delete all --selector app=customer-api- Delete deployment.