Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created July 18, 2014 16:23
Show Gist options
  • Select an option

  • Save kelseyhightower/d6d5a14353c139a9a196 to your computer and use it in GitHub Desktop.

Select an option

Save kelseyhightower/d6d5a14353c139a9a196 to your computer and use it in GitHub Desktop.
core@m0 ~/kubernetes $ /opt/kubernetes/bin/kubecfg list /pods
Name Image(s) Host Labels
---------- ---------- ---------- ----------
bc6ea28f-0e81-11e4-9329-000c29c27950 brendanburns/php-redis 192.168.12.10/ name=frontend,replicationController=frontendController
34d7df94-0e81-11e4-9329-000c29c27950 brendanburns/redis-slave 192.168.12.11/ name=redisslave,replicationController=redisSlaveController
68f8bacb-0e81-11e4-9329-000c29c27950 brendanburns/php-redis 192.168.12.11/ name=frontend,replicationController=frontendController
redis-master-2 dockerfile/redis 192.168.12.12/ name=redis-master
1cfe2b25-0e81-11e4-9329-000c29c27950 brendanburns/redis-slave 192.168.12.12/ name=redisslave,replicationController=redisSlaveController
98a9a074-0e81-11e4-9329-000c29c27950 brendanburns/php-redis 192.168.12.12/ name=frontend,replicationController=frontendController
core@m0 ~/kubernetes $ /opt/kubernetes/bin/kubecfg -json get pods/34d7df94-0e81-11e4-9329-000c29c27950
{
"kind": "Pod",
"id": "34d7df94-0e81-11e4-9329-000c29c27950",
"resourceVersion": 9217,
"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
},
"status": "Running",
"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
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment