Module Expr Str ImportFrom alias alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Assign AttributeStore NameLoad attr Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr BinOpAdd NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg kwarg body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign SubscriptStore NameLoad Index Str Str For NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad NameLoad body Expr Yield Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad keyword NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Dict Str Dict Str Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return DictComp NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return DictComp NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list decorator_list
N/A N/A 
This is a barebones Kubernetes HTTP API client.

Alternatively, you could use subprocess.call to call out to kubectl.
 base64 b64decode b64encode N/A json N/A requests KubernetesError N/A Exception N/A N/A Encapsulates an error from the Kubernetes API and allows it to be
    presented in a readable manner to the user. __init__ N/A N/A self httperror N/A N/A N/A N/A self httperror httperror N/A N/A N/A N/A self json N/A N/A N/A httperror response json N/A N/A N/A N/A N/A self json N/A error N/A N/A httperror response text N/A N/A N/A N/A super KubernetesError self __init__ N/A N/A {} format N/A self json N/A N/A Kubernetes N/A object N/A N/A Kubernetes HTTP API client. __init__ N/A N/A self api_root namespace N/A default N/A N/A N/A self _api_root N/A api_root /api/v1 N/A N/A self _namespace namespace N/A _url N/A N/A self resource namespace N/A None args kwargs N/A N/A N/A N/A {}/namespaces/{}/{} format N/A self _api_root N/A namespace N/A self _namespace N/A N/A resource format args kwargs N/A _wrap_exception N/A N/A self r N/A N/A N/A N/A N/A N/A N/A r raise_for_status N/A N/A N/A N/A requests HTTPError N/A e N/A N/A N/A KubernetesError e N/A _get N/A N/A self resource N/A args kwargs N/A N/A url N/A N/A self _url resource N/A r N/A N/A requests get url args kwargs N/A N/A N/A self _wrap_exception r N/A N/A N/A r json N/A _stream N/A N/A self resource N/A args kwargs N/A N/A url N/A N/A self _url resource N/A r N/A N/A requests get url stream True args kwargs N/A line N/A N/A r iter_lines N/A N/A N/A line N/A _watch N/A N/A self resource N/A args kwargs N/A N/A params N/A N/A kwargs pop params N/A N/A N/A params N/A watch true N/A line N/A N/A self _stream resource params params args kwargs N/A N/A N/A N/A N/A json loads line N/A _post N/A N/A self resource data N/A args kwargs N/A N/A url N/A N/A self _url resource N/A r N/A N/A requests post url data N/A N/A json dumps data args kwargs N/A N/A N/A self _wrap_exception r N/A N/A N/A r json N/A _put N/A N/A self resource data N/A args kwargs N/A N/A url N/A N/A self _url resource N/A r N/A N/A requests put url data N/A N/A json dumps data args kwargs N/A N/A N/A self _wrap_exception r N/A N/A N/A r json N/A _patch N/A N/A self resource data N/A args kwargs N/A N/A url N/A N/A self _url resource N/A r N/A N/A requests patch url data N/A N/A json dumps data headers N/A content-type application/merge-patch+json args kwargs N/A N/A N/A self _wrap_exception r N/A N/A N/A r json N/A _delete N/A N/A self resource N/A args kwargs N/A N/A url N/A N/A self _url resource N/A r N/A N/A requests delete url args kwargs N/A N/A N/A self _wrap_exception r N/A N/A N/A r json N/A pods N/A N/A self N/A args kwargs N/A N/A N/A N/A self _get pods args kwargs N/A services N/A N/A self N/A args kwargs N/A N/A N/A N/A self _get services args kwargs N/A replicationcontrollers N/A N/A self N/A args kwargs N/A N/A N/A N/A self _get replicationcontrollers args kwargs N/A logs N/A N/A self name container follow lines N/A None None None args kwargs N/A N/A params N/A N/A kwargs pop params N/A N/A N/A N/A params update N/A container follow tailLines container follow lines N/A N/A N/A self _stream N/A N/A pods/{}/log format name params params args kwargs N/A get_service N/A N/A self name N/A args kwargs N/A N/A N/A N/A self _get N/A services/ name args kwargs N/A create_service N/A N/A self spec N/A args kwargs N/A N/A N/A N/A self _post services spec args kwargs N/A create_replicationcontroller N/A N/A self spec N/A args kwargs N/A N/A N/A N/A self _post replicationcontrollers spec args kwargs N/A scale N/A N/A self name replicas N/A args kwargs N/A N/A N/A N/A self _patch N/A N/A replicationcontrollers/{} format name N/A spec N/A replicas 0 args kwargs N/A delete_service N/A N/A self name N/A args kwargs N/A N/A N/A N/A self _delete N/A N/A services/{} format name args kwargs N/A delete_replicationcontroller N/A N/A self name N/A args kwargs N/A N/A N/A N/A self _delete N/A N/A replicationcontrollers/{} format name args kwargs N/A encode_secret_data N/A N/A self data N/A N/A N/A Base64 encodes a dictionary's values.

        Kubernetes expects secret values to be base64 encoded within JSON.
         N/A N/A k N/A b64encode v N/A N/A k v N/A N/A data iteritems N/A decode_secret_data N/A N/A self data N/A N/A N/A Base64 decodes a dictionary's values.

        Kubernetes returns secret values encoded in base64.
         N/A N/A k N/A b64decode v N/A N/A k v N/A N/A data iteritems N/A get_secret N/A N/A self name N/A args kwargs N/A N/A r N/A N/A self _get N/A secrets/ name args kwargs N/A N/A r N/A data N/A N/A self decode_secret_data N/A r N/A data N/A r N/A create_secret N/A N/A self spec N/A args kwargs N/A N/A N/A spec N/A data N/A N/A self encode_secret_data N/A spec N/A data N/A N/A N/A self _post secrets spec args kwargs N/A replace_secret N/A N/A self spec N/A args kwargs N/A N/A name N/A N/A spec N/A metadata N/A name N/A N/A spec N/A data N/A N/A self encode_secret_data N/A spec N/A data N/A N/A N/A self _put N/A N/A secrets/{} format name spec args kwargs N/A delete_secret N/A N/A self name N/A args kwargs N/A N/A N/A N/A self _delete N/A N/A secrets/{} format name args kwargs N/A watch_secrets N/A N/A self N/A args kwargs N/A N/A N/A N/A self _watch secrets args kwargs N/A N/A