Created
September 25, 2014 22:08
-
-
Save smothiki/8f4a4039a86bba1e461b to your computer and use it in GitHub Desktop.
create pods
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 -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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment