module

KubectlClient::Utils

Class methods

annotate(kind : String, resource_name : String, annotatation_str : String, namespace : String | Nil = nil)
Source
copy_from_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil)
Source
copy_to_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil)
Source
cordon(node_name : String)
Source
exec(pod_name : String, command : String, container_name : String | Nil = nil, namespace : String | Nil = nil)

Exceptions (other than network) not raised in this method as 'command' can be whatever caller desires, unlike other methods in which method body will build a valid command forced by its arguments.

Source
exec_bg(pod_name : String, command : String, container_name : String | Nil = nil, namespace : String | Nil = nil)

Use with caution as there is no error handling due to process being started in the background.

Source
label(kind : String, resource_name : String, labels : Array(String), namespace : String | Nil = nil)
Source
logs(pod_name : String, container_name : String | Nil = nil, namespace : String | Nil = nil, options : String | Nil = nil)
Source
replace_raw(path : String, file_path : String, extra_flags : String | Nil = nil)
Source
scale(kind : String, resource_name : String, replicas : Int32, namespace : String | Nil = nil)
Source
set_image(resource_kind : String, resource_name : String, container_name : String, image_name : String, version_tag : String | Nil = nil, namespace : String | Nil = nil)
Source
uncordon(node_name : String)
Source