Listing objects

You can list different kinds of object. The method names start with list_. Here is an example listing all namespaces:

 >>> for ns in v1.list_namespace().items:
...     print(ns.metadata.name)
...
default
kube-public
kube-system  
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset