module Kube::Helper
Overview
TODO Write documentation for Kube::Helper
Defined in:
kube/helper.crConstant Summary
-
POD_PHASES =
{pending: "Pending", running: "Running", succeeded: "Succeeded", failed: "Failed", unkown: "Unknown", completed: "Completed", crash_loop: "CrashLoopBackOff"}
-
Hash containing the possible phases of the kubernetes pod
Class Method Summary
Instance Method Summary
-
#client : Kube::Client
Kubernetes API Client
-
#gather_nodes : Array(JSON::Any)
Gather all nodes in the cluster
- #logger
-
#node_ip(node : Hash(String, JSON::Any) | JSON::Any) : String | Nil
Helper method to return the ip of the node
-
#node_name(node : JSON::Any) : String | Nil
Helper method to return the name of the node
-
#node_ready?(node : JSON::Any) : Bool
Helper method to return if the node is considered "ready"
-
#node_schedulable?(node : JSON::Any) : Bool
Helper method to return if the node is schedulable
-
#node_unschedulable?(node : JSON::Any) : Bool
Helper method to return if the node is unschedulable
-
#pod_cluster_ip(pod : JSON::Any) : String | Nil
Helper method to return the cluster ip of the pod
-
#pod_ip(pod : JSON::Any) : String | Nil
Helper method to return the ip address of the pod
-
#pod_labels(pod : JSON::Any) : Hash(String, String) | Nil
Helper method to return the labels of the pod
-
#pod_name(pod : JSON::Any) : String | Nil
Helper method to return the name of the pod
-
#pod_status(pod : JSON::Any) : String
Helper method to return the status phase of the pod
Class Method Detail
Instance Method Detail
Helper method to return the ip of the node
Helper method to return if the node is considered "ready"
Helper method to return if the node is unschedulable
Helper method to return the cluster ip of the pod
Helper method to return the labels of the pod