| Kubernetes Documentation |
| ======================== |
| |
| .. note:: |
| |
| This Kubernetes driver will be subject to change from community feedback. How to map the core assets (pods, clusters) to API |
| entities will be subject to testing and further community feedback. |
| |
| Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", |
| it groups the containers which make up an application into logical units for easy management and discovery. |
| |
| .. figure:: /_static/images/provider_logos/kubernetes.png |
| :align: center |
| :width: 300 |
| :target: http://kubernetes.io/ |
| |
| |
| Authentication |
| -------------- |
| |
| Authentication currently supported with the following methods: |
| |
| * Basic HTTP Authentication - http://kubernetes.io/v1.1/docs/admin/authentication.html |
| * No authentication (testing only) |
| |
| Instantiating the driver |
| ------------------------ |
| |
| .. literalinclude:: /examples/container/kubernetes/instantiate_driver.py |
| :language: python |
| |
| Deploying a container from Docker Hub |
| ------------------------------------- |
| |
| Docker Hub Client :class:`~libcloud.container.utils.docker.HubClient` is a shared utility class for interfacing to the public Docker Hub Service. |
| |
| You can use this class for fetching images to deploy to services like ECS |
| |
| .. literalinclude:: /examples/container/kubernetes/docker_hub.py |
| :language: python |
| |
| API Docs |
| -------- |
| |
| .. autoclass:: libcloud.container.drivers.kubernetes.KubernetesContainerDriver |
| :members: |
| :inherited-members: |