OpenShift - Deployment status using the oc status command

An image contains the code used to create a deployment. Then, a deployment can be created from an image, which should then create a replica set (which is the number of pods that should be created), and then the pods should be created.

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

Before you can use the oc status command, you must first use the oc login command to login, and also use the oc project command to select the project that you want to get the status against. Let's say the oc get deployments command show that project "myProject" contain 1 deployment, "app001".

~]# oc project myProject
~]# oc get deployments
NAME            DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
app001          1         1         1            1           205d

 

The oc status command will display the status of the each deployment in the project. The oc config view or oc get apiserver commands can be used to display the API Server URL (api.openshift.example.com in this example).

svc/app001 - 10.17.52.114:27017
  deployment/app001 deploys api.openshift.example.com/rhscl/app001:1-45
    deployment #5 running for 6 months - 1 pod
    deployment #4 deployed 6 months ago
    deployment #3 deployed 6 months ago
    deployment #2 deployed 6 months ago

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter 701de in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |