2024年3月2日发(作者:)
现在访问 /api/v1/nodes 就能看到已经添加进来的节点:http 192.168.8.100:8080/api/v1/nodesHTTP/1.1 200 OKContent-Type: application/jsonDate: Thu, 08 Sep 2016 08:27:44 GMTTransfer-Encoding: chunked{"apiVersion": "v1","items": [{"metadata": {"annotations": {"/controller-managed-attach-detach": "true"},"creationTimestamp": "2016-09-08T08:23:01Z","labels": {"/arch": "amd64","/os": "linux","/hostname": "192.168.8.100"},"name": "192.168.8.100","resourceVersion": "65","selfLink": "/api/v1/nodes/192.168.8.100","uid": "74e16eba-759d-11e6-b463-080027c09e5b"},"spec": {"externalID": "192.168.8.100"},"status": {"addresses": [{"address": "192.168.8.100","type": "LegacyHostIP"},{"address": "192.168.8.100","type": "InternalIP"}],"allocatable": {"/nvidia-gpu": "0","cpu": "1","memory": "502164Ki","pods": "110"},"capacity": {"/nvidia-gpu": "0","cpu": "1","memory": "502164Ki","pods": "110"},"conditions": [{"lastHeartbeatTime": "2016-09-08T08:27:36Z","lastTransitionTime": "2016-09-08T08:23:01Z","message": "kubelet has sufficient disk space available","reason": "KubeletHasSufficientDisk","status": "False","type": "OutOfDisk"},{"lastHeartbeatTime": "2016-09-08T08:27:36Z","lastTransitionTime": "2016-09-08T08:23:01Z","message": "kubelet has sufficient memory available",
"message": "kubelet has sufficient memory available","reason": "KubeletHasSufficientMemory","status": "False","type": "MemoryPressure"},{"lastHeartbeatTime": "2016-09-08T08:27:36Z","lastTransitionTime": "2016-09-08T08:24:56Z","message": "kubelet is posting ready status","reason": "KubeletReady","status": "True","type": "Ready"}],"daemonEndpoints": {"kubeletEndpoint": {"Port": 10250}},"images": [{"names": ["172.16.1.41:5000/nginx:latest"],"sizeBytes": 425626718},{"names": ["172.16.1.41:5000/hyperkube:v0.18.2"],"sizeBytes": 207121551},{"names": ["172.16.1.41:5000/etcd:v3.0.4"],"sizeBytes": 43302056},{"names": ["172.16.1.41:5000/busybox:latest"],"sizeBytes": 1092588},{"names": ["172.16.1.41:5000/google_containers/pause:0.8.0"],"sizeBytes": 241656}],"nodeInfo": {"architecture": "amd64","bootID": "48955926-11dd-4ad3-8bb0-2585b1c9215d","containerRuntimeVersion": "docker://1.10.3","kernelVersion": "7.x86_64","kubeProxyVersion": "v1.3.1-beta.0.6+fbf3f3e5292fb0","kubeletVersion": "v1.3.1-beta.0.6+fbf3f3e5292fb0","machineID": "b9597c4ae5f24494833d35e806e00b29","operatingSystem": "linux","osImage": "CentOS Linux 7 (Core)","systemUUID": "823EB67A-057E-4EFF-AE7F-A758140CD2F7"}}}],
"securityContext": {},"terminationGracePeriodSeconds": 30,"volumes": [{"emptyDir": {},"name": "nginx-logs"}]},"status": {"conditions": [{"lastProbeTime": null,"lastTransitionTime": "2016-09-08T09:49:28Z","status": "True","type": "Initialized"},{"lastProbeTime": null,"lastTransitionTime": "2016-09-08T09:49:44Z","status": "True","type": "Ready"},{"lastProbeTime": null,"lastTransitionTime": "2016-09-08T09:49:44Z","status": "True","type": "PodScheduled"}],"containerStatuses": [{"containerID": "docker://8b79eeea60f27b6d3f0a19cbd1b3ee3f83709bcf56574a6e1124c69a6376972d","image": "172.16.1.41:5000/busybox","imageID": "docker://sha256:8c566faa3abdaebc33d40c1b5e566374c975d17754c69370f78c00c162c1e075","lastState": {},"name": "log-output","ready": true,"restartCount": 0,"state": {"running": {"startedAt": "2016-09-08T09:49:43Z"}}},{"containerID": "docker://96e64cdba7b05d4e30710a20e958ff5b8f1f359c8d16d32622b36f0df0cb353c","image": "172.16.1.41:5000/nginx","imageID": "docker://sha256:51d764c1fd358ce81fd0e728436bd0175ff1f3fd85fc5d1a2f9ba3e7dc6bbaf6","lastState": {},"name": "nginx-server","ready": true,"restartCount": 0,"state": {"running": {"startedAt": "2016-09-08T09:49:36Z"}}}],"hostIP": "192.168.8.100","phase": "Running","podIP": "172.17.0.2","startTime": "2016-09-08T09:49:28Z"}}
发布者:admin,转转请注明出处:http://www.yc00.com/web/1709339372a1617576.html
评论列表(0条)