def deploy_container(self, name, image, cluster=None,
                         parameters=None, start=True):
        if cluster is None:
            namespace = 'default'
        else:
            namespace = cluster.id
        request = {
            "metadata": {
                "name": name
            },
            "spec": {
                "containers": [
                    {
                        "name": name,
                        "image": image.name
                    }
                ]
            }
        }
        result = self.connection.request(ROOT_URL + "v1/namespaces/%s/pods"
                                         % namespace,
                                         method='POST',
                                         data=json.dumps(request)).object
        return self._to_cluster(result)
Deploy an installed container image.
dataset/ETHPy150Open apache/libcloud/libcloud/container/drivers/kubernetes.py/KubernetesContainerDriver.deploy_container