def network_kubernetes(**kw):
"""
Create a new ``IKubernetes`` provider which can be used to create clients.
:param twisted.python.url.URL base_url: The root of the Kubernetes HTTPS
API to interact with.
:param twisted.web.iweb.IAgent agent: An HTTP agent to use to issue
requests. Defaults to a new ``twisted.web.client.Agent`` instance.
See ``txkube.authenticate_with_serviceaccount`` and
``txkube.authenticate_with_certificate`` for helpers for creating
agents that interact well with Kubernetes servers.
:return IKubernetes: The Kubernetes service.
"""
return _NetworkKubernetes(**kw)
评论列表
文章目录