Skip to content

Instantly share code, notes, and snippets.

@carlossg carlossg/list pods
Created Nov 26, 2014

Embed
What would you like to do?
$ ./cluster/kubecfg.sh list pods
Name Image(s) Host Labels Status
---------- ---------- ---------- ---------- ----------
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3c9fcad3dde7 csanchez/jenkins-swarm:latest "/usr/local/bin/jenk About a minute ago Up About a minute k8s_jenkins.19bcc4d5_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_7916d2fb
4431bc2a49fe google/cadvisor:0.6.2 "/usr/bin/cadvisor" 14 minutes ago Up 14 minutes k8s_cadvisor.b0dae998_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0.default.file_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0_c1b0fb7a
88342e188e71 kubernetes/pause:go "/pause" 14 minutes ago Up 14 minutes k8s_net.dbcb7509_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_d99d61cc
a106f53931fa kubernetes/pause:go "/pause" 14 minutes ago Up 14 minutes 0.0.0.0:4194->8080/tcp k8s_net.a0f18f6e_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0.default.file_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0_fa47c9ec
[vagrant@kubernetes-minion-1 ~]$ docker kill 3c9fcad3dde7
3c9fcad3dde7
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [info] POST /v1.15/containers/3c9fcad3dde7/kill?signal=KILL
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] +job kill(3c9fcad3dde7, KILL)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] +job log(die, 3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443, csanchez/jenkins-swarm:latest)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] -job log(die, 3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443, csanchez/jenkins-swarm:latest) = OK (0)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] +job release_interface(3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: No network information to release for 3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] -job release_interface(3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443) = ERR (1)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] +job log(kill, 3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443, csanchez/jenkins-swarm:latest)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] -job log(kill, 3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443, csanchez/jenkins-swarm:la...) = OK (0)
Nov 26 18:00:50 kubernetes-minion-1 docker[10574]: [807167e2] -job kill(3c9fcad3dde7, KILL) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job containers()
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job containers() = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/json?all=1
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job containers()
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job containers() = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/json?all=1
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job containers()
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job containers() = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/4431bc2a49fe3dc19e4534ba91367f6f1ab0dc7bcc94ab6331a4e24041d38b3b/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(4431bc2a49fe3dc19e4534ba91367f6f1ab0dc7bcc94ab6331a4e24041d38b3b)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(4431bc2a49fe3dc19e4534ba91367f6f1ab0dc7bcc94ab6331a4e24041d38b3b) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/88342e188e717f5e59f6f944b4720697bc173cc5100c1cf8b28ffba184f67e6c/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(88342e188e717f5e59f6f944b4720697bc173cc5100c1cf8b28ffba184f67e6c)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(88342e188e717f5e59f6f944b4720697bc173cc5100c1cf8b28ffba184f67e6c) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/a106f53931fa1818462ff82076226b78e9fb69068a60bf6d526b727fd24f7976/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(a106f53931fa1818462ff82076226b78e9fb69068a60bf6d526b727fd24f7976)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(a106f53931fa1818462ff82076226b78e9fb69068a60bf6d526b727fd24f7976) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/json?all=1
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job containers()
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job containers() = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(3c9fcad3dde79cb7d2ae29dc7fdaa1508bb898470490ea9ac03ecd36cc2e2443) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/49dbc19bac9b67bf62ff9153babc1006607dfdcee951ed6cb243290e3592f71d/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(49dbc19bac9b67bf62ff9153babc1006607dfdcee951ed6cb243290e3592f71d)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(49dbc19bac9b67bf62ff9153babc1006607dfdcee951ed6cb243290e3592f71d) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/73a3be293ff7d424b0319848f8380af2a0dfc1791c41743300d44c3ac023bbb5/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(73a3be293ff7d424b0319848f8380af2a0dfc1791c41743300d44c3ac023bbb5)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(73a3be293ff7d424b0319848f8380af2a0dfc1791c41743300d44c3ac023bbb5) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /images/csanchez/jenkins-swarm/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job image_inspect(csanchez/jenkins-swarm)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job image_inspect(csanchez/jenkins-swarm) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] POST /containers/create?name=k8s_jenkins.19bcc4d5_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_589ed8de
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job create(k8s_jenkins.19bcc4d5_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_589ed8de)
Nov 26 18:00:56 kubernetes-minion-1 kernel: EXT4-fs (dm-16): mounted filesystem with ordered data mode. Opts: discard
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job log(create, d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9, csanchez/jenkins-swarm:latest)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job log(create, d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9, csanchez/jenkins-swarm:...) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job create(k8s_jenkins.19bcc4d5_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_589ed8de) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 kubelet[457]: I1126 18:00:56.288151 457 event.go:62] Event(api.ObjectReference{Kind:"BoundPod", Namespace:"default", Name:"jenkins", UID:"...
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] POST /containers/d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9/start
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job start(d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9)
Nov 26 18:00:56 kubernetes-minion-1 kernel: EXT4-fs (dm-16): mounted filesystem with ordered data mode. Opts: discard
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job log(start, d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9, csanchez/jenkins-swarm:latest)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job log(start, d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9, csanchez/jenkins-swarm:l...) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 systemd[1]: Starting docker container d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9.
Nov 26 18:00:56 kubernetes-minion-1 systemd[1]: Started docker container d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9.
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job start(d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 kubelet[457]: I1126 18:00:56.369022 457 event.go:62] Event(api.ObjectReference{Kind:"BoundPod", Namespace:"default", Name:"jenkins", UID:"...
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /containers/d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job container_inspect(d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job container_inspect(d38c9754caf02bf61c2c365e0e8092a1503b74ece76c81583b2ef4c31ae2bde9) = OK (0)
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [info] GET /v1.15/containers/json
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] +job containers()
Nov 26 18:00:56 kubernetes-minion-1 docker[10574]: [807167e2] -job containers() = OK (0)
[vagrant@kubernetes-minion-1 ~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d38c9754caf0 csanchez/jenkins-swarm:latest "/usr/local/bin/jenk Less than a second ago Up Less than a second k8s_jenkins.19bcc4d5_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_589ed8de
4431bc2a49fe google/cadvisor:0.6.2 "/usr/bin/cadvisor" 15 minutes ago Up 15 minutes k8s_cadvisor.b0dae998_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0.default.file_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0_c1b0fb7a
88342e188e71 kubernetes/pause:go "/pause" 15 minutes ago Up 15 minutes k8s_net.dbcb7509_jenkins.default.etcd_ec4395c4-7587-11e4-a7ee-0800279696e1_d99d61cc
a106f53931fa kubernetes/pause:go "/pause" 15 minutes ago Up 15 minutes 0.0.0.0:4194->8080/tcp k8s_net.a0f18f6e_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0.default.file_cadvisormanifes12uqn2ohido76855gdecd9roadm7l0_fa47c9ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.