Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
python kubernetes客户端等效于什么
kubectl get deploy -o yaml
CRUD python 客户端示例
我参考了这个示例来获取 python 部署,但没有读取部署选项
read_namespaced_deployment()做这件事:
read_namespaced_deployment()
from kubernetes import client, config config.load_kube_config() api = client.AppsV1Api() deployment = api.read_namespaced_deployment(name='foo', namespace='bar')