package kubecaml

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

specification of a horizontal pod autoscaler.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?target_cpu_utilization_percentage:int -> scale_target_ref: Kubernetes.Definitions.Api.Autoscaling.V1.Cross_version_object_reference.t -> ?min_replicas:int -> max_replicas:int -> unit -> t
val max_replicas : t -> int

upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than Min_replicas.

val min_replicas : t -> int option

lower limit for the number of pods that can be set by the autoscaler, default 1.

reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.

val target_cpu_utilization_percentage : t -> int option

target average Cpu utilization (represented as a percentage of requested Cpu) over all the pods; if not specified the default autoscaling policy will be used.

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