Unify the COE API for container operations

Registered by Guangya Liu (Jay Lau)

Currently, the Kubernetes is using "kubectl create" to create all of k8s objects including pod, rc, service, pv, pvc, hpa etc using either yaml, json, yml, stdin file format (https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/user-guide/kubectl/kubectl_create.md); The marathon+mesos also using yaml, json file to create applications. It is difficult to unify the concept of all COEs but at least seems many COEs are trying to unify the input and output: all using same file format as input and getting same format output.

It is a good signal for Magnum and the Magmum can leverage those features to unify the client interface for different COEs. i.e we can use "magnum create" to create pod, rc, service, pv, pvc even marathon service etc.

- 'magnum create ’, with file which has Swarm/Mesos/Kubernetes specific payload.
- 'magnum container-create’, with simple list of options which work for Swarm/Mesos/Kub. it will be good option for users who just wants to try containers.
- 'magnum get' can get different objects like kubernetes.

root@db06b03:~# kubectl get
You must specify the type of resource to get. Valid resource types include:
   * pods (aka 'po')
   * replicationcontrollers (aka 'rc')
   * daemonsets (aka 'ds')
   * services (aka 'svc')
   * events (aka 'ev')
   * nodes (aka 'no')
   * namespaces (aka 'ns')
   * secrets
   * persistentvolumes (aka 'pv')
   * persistentvolumeclaims (aka 'pvc')
   * limitranges (aka 'limits')
   * resourcequotas (aka 'quota')
   * componentstatuses (aka 'cs')
   * endpoints (aka 'ep')
error: Required resource not specified.

Blueprint information

Status:
Complete
Approver:
Adrian Otto
Priority:
Not
Drafter:
Guangya Liu (Jay Lau)
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
hongbin

Related branches

Sprints

Whiteboard

This requires further team discussion for consideration. Temporarily marking priority as "Not" pending further discussion. --adrian_otto

According to the decision in Austin summit, the /container endpoint will be removed from Magnum and re-introduced in Higgins (a new project). Therefore, this BP is not needed anymore.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.