package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Pod_status represents information about the status of a pod. Status may trail the actual state of a system.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?start_time:Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Time.t -> ?reason:string -> ?qos_class:string -> ?pod_ip:string -> ?phase:string -> ?nominated_node_name:string -> ?message:string -> ?init_container_statuses: Kubernetes.Definitions.Api.Core.V1.Container_status.t list -> ?host_ip:string -> ?container_statuses: Kubernetes.Definitions.Api.Core.V1.Container_status.t list -> ?conditions:Kubernetes.Definitions.Api.Core.V1.Pod_condition.t list -> unit -> t

Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions

val container_statuses : t -> Kubernetes.Definitions.Api.Core.V1.Container_status.t list option

The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

val host_ip : t -> string option

Ip address of the host to which the pod is assigned. Empty if not yet scheduled.

val init_container_statuses : t -> Kubernetes.Definitions.Api.Core.V1.Container_status.t list option

The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have start_time set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status

val message : t -> string option

A human readable message indicating details about why the pod is in this condition.

val nominated_node_name : t -> string option

nominated_node_name is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than Pod_spec.node_name when the pod is scheduled.

val phase : t -> string option

Current condition of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase

val pod_ip : t -> string option

Ip address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.

val qos_class : t -> string option

The Quality of Service (qos) classification assigned to the pod based on resource requirements See Pod_qos_class type for available Qos classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md

val reason : t -> string option

A brief CamelCase message indicating details about why the pod is in this state. e.g. 'evicted'

Rfc 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.

module Object : Object.S with type value := t