package kubecaml

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

Pod_disruption_budget_status represents information about the status of a Pod_disruption_budget. Status may trail the actual state of a system.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?observed_generation:int -> expected_pods:int -> disruptions_allowed:int -> disrupted_pods: Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Time.Object.t -> desired_healthy:int -> current_healthy:int -> unit -> t
val current_healthy : t -> int

current number of healthy pods

val desired_healthy : t -> int

minimum desired number of healthy pods

Disrupted_pods contains information about pods whose eviction was processed by the Api server eviction subresource handler but has not yet been observed by the Pod_disruption_budget controller. A pod will be in this map from the time when the Api server processed the eviction request to the time when the pod is seen by Pdb controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the Api server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by Pod_disruption_budget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.

val disruptions_allowed : t -> int

Number of pod disruptions that are currently allowed.

val expected_pods : t -> int

total number of pods counted by this disruption budget

val observed_generation : t -> int option

Most recent generation observed when updating this Pdb status. Pod_disruptions_allowed and other status informatio is valid only if observed_generation equals to Pdb's object generation.

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

Innovation. Community. Security.