0
我正在使用fabric8.io java客戶端來創建和管理容器。莢創建時雖然我得到以下狀態kuberenets pod creation pending
{
"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
它不返回任何東西這個吊艙。如何查看日誌以瞭解狀態爲何處於掛起狀態?
謝謝,與描述命令我得到錯誤窗格「podName」找不到。 –
'kubectl describe pod podName --namespace podNameSpace'應該這樣做。 –