Unify the COE API for container operations
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:/
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/
- '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')
* replicationcont
* daemonsets (aka 'ds')
* services (aka 'svc')
* events (aka 'ev')
* nodes (aka 'no')
* namespaces (aka 'ns')
* secrets
* persistentvolumes (aka 'pv')
* persistentvolum
* 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
- Started by
- Completed by
- hongbin
Related branches
Related bugs
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.