April 2018
Intermediate to advanced
468 pages
14h 34m
English
Let's dive in and understand the CoreV1API group. The Python object has 481 public attributes:
>>> attributes = [x for x in dir(v1) if not x.startswith('__')]
>>> len(attributes)
481
Ignore the attributes that starts with double underscores because those are special class/instance methods unrelated to Kubernetes.
Let's pick ten random methods and see what they look like:
>>> import random >>> from pprint import pprint as pp >>> pp(random.sample(attributes, 10)) ['patch_namespaced_pod', 'connect_options_node_proxy_with_path_with_http_info', 'proxy_delete_namespaced_pod_with_path', 'delete_namespace', 'proxy_post_namespaced_pod_with_path_with_http_info', 'proxy_post_namespaced_service', 'list_namespaced_pod_with_http_info', ...
Read now
Unlock full access