Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
New Rancher Container Driver #876
Rancher Container Driver
This is a new Container Driver for Rancher, the fantastic container orchestration platform that supports the likes of Kubernetes, Docker Swarm, and Mesos frameworks. It provides a fantastic abstraction layer for working with these frameworks on any infrastructure you'd like! Plus it's open-source!
Utilizing the v1 API and extensively working with the docs, I've managed to get an initial version of a fairly reliable ContainerDriver for Libcloud. It follows the normal Container conventions as closely as possible and provides extensive docstrings for excellent interaction, even without a massive understanding of Rancher itself.
The three main top-level Rancher items are implemented:
Although not every possible action is available, the necessities like creation and deletion plus things like activation, get, search, and list are included.
With Arroyo Networks' upcoming NaaS platform, Inflow, I've been hard at work establishing our Infrastructure assets. Rancher has seemed a clear choice to help us maintain a nimble platform not tied to any specific back-end Infrastructure provider. Hence, much of our Python code needs a way to interact with our clusters, so writing a Libcloud plugin was pretty much a no-brainer.
I have tested this works appropriately with Rancher Server v1.1.3 (API v1).
Of course, I want persons looking at this to pay attention to the whole PR. However, there are a few key areas I want some focus on:
I encourage reviewers to pull my branch and play with this ;)
Checklist (tick everything that applies)
I have worked closely with Anthony Shaw, a core contributor to Libcloud (especially the Container stuffs) as well as Vincent Fiduccia, software architect at Rancher Labs. The have been invaluable in helping me establish a solid driver for Rancher.
Love it! Is their a direct kubernetes driver yet? Im on the road else id
On Thursday, September 29, 2016, Anthony Shaw firstname.lastname@example.org
Random comments related to the Rancher integration...
Thanks a lot of the input everyone. I've modified and changed around quite a bit based on input which has made this driver quite a bit better ;)
I'd like some more input from @tonybaloney about how the response class should be utilized. Other than that, I'm working on a test (similar to the docker test) and should have a license agreement signed soon.