python:kubernetes的官方Python客户端库

时间:2021-02-03 00:23:41
【文件属性】:
文件名称:python:kubernetes的官方Python客户端库
文件大小:3.2MB
文件格式:ZIP
更新时间:2021-02-03 00:23:41
kubernetes library k8s client-python k8s-sig-api-machinery Kubernetes Python客户端 API的Python客户端。 安装 来自来源: git clone --recursive https://github.com/kubernetes-client/python.git cd python python setup.py install 直接从 : pip install kubernetes 例子 列出所有豆荚: from kubernetes import client , config # Configs can be set in Configuration class directly or using helper utility config . load_kube_config () v1 = client . CoreV1Api () print ( "Listing pods with their IPs:" ) ret = v1 . list_pod_for_all_namespaces ( watch = False ) for i in ret . items : print ( "

网友评论