module ClusterTools
Defined in:
modules/cluster_tools/cluster_tools.crClass Method Summary
-
.all_containers_by_resource?(resource, namespace, only_container_pids : Bool = false, &)
each_container_by_resource(resource, namespace) do | container_id, container_pid_on_node, node, container_proctree_statuses, container_status|
- .change_namespace(name)
- .cluster_tools_pod_by_node(node_name)
- .ensure_namespace_exists!
- .exec(cli : String) : KubectlClient::CMDResult
- .exec_by_node(cli : String, node_name : String) : KubectlClient::CMDResult | Nil
- .exec_by_node(cli : String, node : JSON::Any) : KubectlClient::CMDResult
- .exec_by_node_bg(cli : String, node : JSON::Any) : KubectlClient::BackgroundCMDResult
- .install(host_namespace = true)
- .local_match_by_image_name(image_names : Array(String), nodes = (KubectlClient::Get.resource("nodes"))["items"].as_a)
-
.local_match_by_image_name(image_name, nodes : Array(JSON::Any))
TODO (rafal-lal): add spec for it
- .local_match_by_image_name(image_name, nodes = (KubectlClient::Get.resource("nodes"))["items"].as_a)
- .namespace
- .namespace!
- .node_pid_by_container_id(container_id, node) : String | Nil
-
.official_content_digest_by_image_name(image_name)
https://windsock.io/explaining-docker-image-ids/ works on dockerhub and quay! ex.
-
.parse_container_id(container_id : String)
todo make compatible with other runtimes
- .pod_by_node(node)
- .pod_name
- .uninstall(host_namespace = true)
- .wait_for_cluster_tools
Class Method Detail
each_container_by_resource(resource, namespace) do | container_id, container_pid_on_node, node, container_proctree_statuses, container_status|
TODO (rafal-lal): add spec for it
https://windsock.io/explaining-docker-image-ids/ works on dockerhub and quay! ex. kubectl exec cluster-tools-ww9lg -- skopeo inspect docker://jaegertracing/jaeger-agent:1.28.0 Accepts org/image:tag or repo/org/image:tag A content digest is an uncompressed digest, which is what Kubernetes tracks