Implement a python kubernetes client

Registered by Steven Dake

To access k8s directly, implement a python client.

Blueprint information

Status:
Complete
Approver:
Adrian Otto
Priority:
Essential
Drafter:
Steven Dake
Direction:
Approved
Assignee:
Madhuri Kumari
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon k3
Started by
Pradeep Kilambi
Completed by
Adrian Otto

Related branches

Sprints

Whiteboard

2015-02-09: We noticed the upstream code repo for python-kubernetes has disappeared from the cosmos-io web site. We emailed the author Jongsu Park about it who indicated that he expected to have a new repo established elsewhere in a few weeks. We are awaiting his follow up to learn the new location of the upstream repo when it becomes available. We should proceed with our plans to leverage this code in the mean time.

Note there is a way to generate a python binding directly from the ReST API. It has to do with some language binding creation tool. I don't recall the details, but asking in #google-containers on irc should yield an answer.

Package submitted on Pypi: https://pypi.python.org/pypi/python-kubernetes/0.2

Gerrit topic: https://review.openstack.org/#q,topic:bp/python-k8sclient,n,z

Addressed by: https://review.openstack.org/153356
    Adding python-kubernetes to requirements

Addressed by: https://review.openstack.org/154679
    WIP: Integrate kubernetes client apis with conductor

Removing Assignee temporarily until I have time to look into this again.
If anyone else is interested in taking this further in the meantime feel
free to grab it. -- prad

Addressed by: https://review.openstack.org/166720
    Adding support of python-k8client.

Addressed by: https://review.openstack.org/170414
    [WIP]Example of k8sclient code in magnum.

Addressed by: https://review.openstack.org/173755
    Enable Kubernetes v1beta3 API.

Addressed by: https://review.openstack.org/173763
    Update Kubernetes version for supporting v1beta3.

Addressed by: https://review.openstack.org/174189
    Fix some issues in python-k8sclient code.

Addressed by: https://review.openstack.org/174261
    Correct ImportError in python-k8sclient code.

Addressed by: https://review.openstack.org/175784
    Remove duplicate replacePod API

Addressed by: https://review.openstack.org/177056
    Add etcd 2.0 config file support

Gerrit topic: https://review.openstack.org/#q,topic:bp/python-k8scient,n,z

Addressed by: https://review.openstack.org/177449
    Add http:// prefix to kubelet api server

Addressed by: https://review.openstack.org/177461
    Invalid JSON in dynamic registration of minion

Addressed by: https://review.openstack.org/178079
    Update pod manifest parsing according to v1beta3

Addressed by: https://review.openstack.org/178519
    Update service manifest parsing according to v1beta3

Addressed by: https://review.openstack.org/178755
    Update rc manifest parsing according to v1beta3

Addressed by: https://review.openstack.org/181768
    Update service manifest parsing according to v1beta3

Addressed by: https://review.openstack.org/181770
    Update rc manifest parsing according to v1beta3

Addressed by: https://review.openstack.org/182908
    Remove unsed files that used kubectl.

Addressed by: https://review.openstack.org/182916
    Update docs and some files to remove kubectl.

adrian_otto: Is there further work to do on this, or should the blueprint be marked as Implemented?

madhuri: Work on this blueprint is completed. You can mark this implemented.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.