我正在使用用于 kubernetes 的 fabric8.io java 客户端来创建和管理容器。虽然在创建 pod 时我得到以下状态
{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "podName",
"generateName": "podName-",
"namespace": "podNameSpace",
"selfLink": "",
"uid": "d3d07626-825f-11e5-96f2-005056976c6f",
"resourceVersion": "3158514",
"creationTimestamp": "2015-11-03T19:19:39Z",
"labels": {
"name": ""
},
"annotations": {
""
}
},
"spec": {
"containers": [
{
"name": "",
"image": "",
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"dnsPolicy": "ClusterFirst"
},
"status": {
"phase": "Pending"
}
当我尝试使用curl -X GET masterUrl/namespaces/namespace/pods/podName
它读取此 pod 的日志时,它不会返回任何内容。如何查看日志以了解状态为待处理的原因?