Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Describing Kubernetes resources

We can quickly take a look at the internals of this pod by running the kubectl describe command:

$ kubectl describe pod httpd-8576c89d7-qjd62Name: httpdNamespace: defaultNode: minikube/192.168.99.101Start Time: Sat, 10 Mar 2018 00:01:33 -0700Annotations: <none>Status: RunningIP: 172.17.0.4...<output omitted>...

It gives us enough information to efficiently locate the pod and do the proper troubleshooting when necessary. In our case, we can ssh to Minikube VM and run the curl command to check if the pod is running the web server properly.

You may need to use another IP address for the curl command; in our case it is 172.17.0.4, derived from the kubectl describe command output.
$ minikube ssh$$ curl 172.17.0.4 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content