官术网_书友最值得收藏!

  • Learn OpenShift
  • Denis Zuev Artemii Kropachev Aleksey Usov
  • 178字
  • 2021-08-13 16:03:52

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-qjd62
Name: httpd
Namespace: default
Node: minikube/192.168.99.101
Start Time: Sat, 10 Mar 2018 00:01:33 -0700
Annotations: <none>
Status: Running
IP: 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
<html><body><h1>It works!</h1></body></html>
$ exit
Note that this pod is accessible only inside the Kubernetes cluster. That is the reason why we need to log in to Minikube VM. If we try to access this address from our local PC, it will not work. We are going to discuss this in the following sections.
主站蜘蛛池模板: 鄱阳县| 大悟县| 乐山市| 昔阳县| 萨嘎县| 阜阳市| 稻城县| 饶阳县| 林芝县| 伊宁市| 锦州市| 济源市| 潼南县| 云南省| 桐庐县| 洪洞县| 潜江市| 天峨县| 安乡县| 古丈县| 岑溪市| 新丰县| 浠水县| 芦溪县| 襄汾县| 两当县| 喀喇| 托里县| 安岳县| 桃源县| 玛多县| 白银市| 尚义县| 谢通门县| 澄江县| 平南县| 顺义区| 海原县| 蒙山县| 和顺县| 南宁市|