Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created July 18, 2014 20:00
Show Gist options
  • Save kelseyhightower/a01efbc247a8a86962cb to your computer and use it in GitHub Desktop.
Save kelseyhightower/a01efbc247a8a86962cb to your computer and use it in GitHub Desktop.
core@m0 ~/kubernetes $ kubecfg -l=name=redis-master -json list pods
{
"kind": "PodList",
"items": [
{
"id": "redis-master-2",
"labels": {
"name": "redis-master"
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "redis-master-2",
"volumes": null,
"containers": [
{
"name": "master",
"image": "dockerfile/redis",
"ports": [
{
"hostPort": 6379,
"containerPort": 6379
}
]
}
]
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null
},
"host": "192.168.12.12",
"podIP": "10.244.2.9",
"info": {
"master": {
"ID": "",
"Created": "0001-01-01T00:00:00Z",
"Path": "",
"Args": null,
"Config": null,
"State": {
"Running": false,
"Pid": 0,
"ExitCode": 0,
"StartedAt": "0001-01-01T00:00:00Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Ghost": false
},
"Image": "",
"NetworkSettings": null,
"SysInitPath": "",
"ResolvConfPath": "",
"HostnamePath": "",
"HostsPath": "",
"Name": "",
"Driver": "",
"Volumes": null,
"VolumesRW": null,
"HostConfig": null
},
"net": {
"ID": "",
"Created": "0001-01-01T00:00:00Z",
"Path": "",
"Args": null,
"Config": null,
"State": {
"Running": false,
"Pid": 0,
"ExitCode": 0,
"StartedAt": "0001-01-01T00:00:00Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Ghost": false
},
"Image": "",
"NetworkSettings": null,
"SysInitPath": "",
"ResolvConfPath": "",
"HostnamePath": "",
"HostsPath": "",
"Name": "",
"Driver": "",
"Volumes": null,
"VolumesRW": null,
"HostConfig": null
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment