Created
September 25, 2014 22:02
-
-
Save smothiki/87a5180044e14c992ee7 to your computer and use it in GitHub Desktop.
Kubernetes requests and replies to commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go run kubecfg.go -h http://172.17.8.100:8080 list /pods | |
api version: | |
v1beta1 | |
url: | |
http://172.17.8.100:8080/api/v1beta1/ | |
request: | |
&{GET http://172.17.8.100:8080/api/v1beta1/pods HTTP/1.1 1 1 map[] <nil> 0 [] false 172.17.8.100:8080 map[] map[] <nil> map[] <nil>} | |
r.verb: | |
GET | |
r.finalURL | |
http://172.17.8.100:8080/api/v1beta1/pods? | |
r.body | |
<nil> | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
sivarams-MacBook-Pro:kubecfg ram$ go run kubecfg.go -h http://172.17.8.100:8080 -c ../../examples/guestbook/redis-master.json create pods | |
api version: | |
v1beta1 | |
url: | |
http://172.17.8.100:8080/api/v1beta1/ | |
request: | |
&{POST http://172.17.8.100:8080/api/v1beta1/pods HTTP/1.1 1 1 map[] {{"kind":"Pod","id":"redis-master-2","creationTimestamp":null,"apiVersion":"v1beta1","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}]}],"restartPolicy":{}}},"currentState":{"manifest":{"version":"","id":"","volumes":null,"containers":null,"restartPolicy":{}}}}} 435 [] false 172.17.8.100:8080 map[] map[] <nil> map[] <nil>} | |
r.verb: | |
POST | |
r.finalURL | |
http://172.17.8.100:8080/api/v1beta1/pods? | |
r.body | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
redis-master-2 dockerfile/redis / name=redis-master Waiting | |
go run kubecfg.go -h http://172.17.8.100:8080 list /pods | |
api version: | |
v1beta1 | |
url: | |
http://172.17.8.100:8080/api/v1beta1/ | |
request: | |
&{GET http://172.17.8.100:8080/api/v1beta1/pods HTTP/1.1 1 1 map[] <nil> 0 [] false 172.17.8.100:8080 map[] map[] <nil> map[] <nil>} | |
r.verb: | |
GET | |
r.finalURL | |
http://172.17.8.100:8080/api/v1beta1/pods? | |
r.body | |
<nil> | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
redis-master-2 dockerfile/redis / name=redis-master Waiting | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment