Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 935 Bytes

File metadata and controls

36 lines (25 loc) · 935 Bytes

Basics

⬅️ Back to the OpenShift overview

Generally, you can achieve all things OpenShift cluster related either using the Web Console or the CLI (using the oc binary). The choice is yours! For this example however, the Web Console does not allow you to create "just a pod" - the most basic unit you can deploy via Web Console is an app which we'll discuss after.

Run a simple pod using the httpd-2.4 image:

oc run httpd --image ubi8/httpd-24 --port 8080

Have a look at all pods in your project:

oc get pod

Get specifically the previously created "httpd" pod:

oc get pod httpd

Check the logs of that pod:

oc logs httpd

Get a better description of the pod:

oc describe pod httpd

📝 Can you figure out where (i.e. on which node) the pod is running?