Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created July 18, 2014 16:55
Show Gist options
  • Save kelseyhightower/4b8919c762a5b0abfd97 to your computer and use it in GitHub Desktop.
Save kelseyhightower/4b8919c762a5b0abfd97 to your computer and use it in GitHub Desktop.
core@m0 ~/kubernetes $ /opt/kubernetes/bin/kubecfg -json list /pods
{
"kind": "PodList",
"items": [
{
"id": "bc6ea28f-0e81-11e4-9329-000c29c27950",
"labels": {
"name": "frontend",
"replicationController": "frontendController"
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "bc6ea28f-0e81-11e4-9329-000c29c27950",
"volumes": null,
"containers": [
{
"name": "",
"image": "brendanburns/php-redis",
"ports": [
{
"hostPort": 8000,
"containerPort": 80
}
]
}
]
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null
},
"host": "192.168.12.10",
"podIP": "10.244.0.6",
"info": {
"": {
"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
}
}
}
},
{
"id": "34d7df94-0e81-11e4-9329-000c29c27950",
"labels": {
"name": "redisslave",
"replicationController": "redisSlaveController"
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "34d7df94-0e81-11e4-9329-000c29c27950",
"volumes": null,
"containers": [
{
"name": "",
"image": "brendanburns/redis-slave",
"ports": [
{
"hostPort": 6380,
"containerPort": 6379
}
]
}
]
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null
},
"host": "192.168.12.11",
"podIP": "10.244.1.7",
"info": {
"": {
"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
}
}
}
},
{
"id": "68f8bacb-0e81-11e4-9329-000c29c27950",
"labels": {
"name": "frontend",
"replicationController": "frontendController"
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "68f8bacb-0e81-11e4-9329-000c29c27950",
"volumes": null,
"containers": [
{
"name": "",
"image": "brendanburns/php-redis",
"ports": [
{
"hostPort": 8000,
"containerPort": 80
}
]
}
]
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null
},
"host": "192.168.12.11",
"podIP": "10.244.1.8",
"info": {
"": {
"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
}
}
}
},
{
"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.6",
"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
}
}
}
},
{
"id": "1cfe2b25-0e81-11e4-9329-000c29c27950",
"labels": {
"name": "redisslave",
"replicationController": "redisSlaveController"
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "1cfe2b25-0e81-11e4-9329-000c29c27950",
"volumes": null,
"containers": [
{
"name": "",
"image": "brendanburns/redis-slave",
"ports": [
{
"hostPort": 6380,
"containerPort": 6379
}
]
}
]
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null
},
"host": "192.168.12.12",
"podIP": "10.244.2.7",
"info": {
"": {
"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
}
}
}
},
{
"id": "98a9a074-0e81-11e4-9329-000c29c27950",
"labels": {
"name": "frontend",
"replicationController": "frontendController"
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "98a9a074-0e81-11e4-9329-000c29c27950",
"volumes": null,
"containers": [
{
"name": "",
"image": "brendanburns/php-redis",
"ports": [
{
"hostPort": 8000,
"containerPort": 80
}
]
}
]
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null
},
"host": "192.168.12.12",
"podIP": "10.244.2.8",
"info": {
"": {
"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