Skip to content

Instantly share code, notes, and snippets.

@smothiki
Created September 25, 2014 22:08
Show Gist options
  • Save smothiki/8f4a4039a86bba1e461b to your computer and use it in GitHub Desktop.
Save smothiki/8f4a4039a86bba1e461b to your computer and use it in GitHub Desktop.
create pods
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