package kubecaml

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

Deployment_spec is the specification of the desired behavior of the Deployment.

type t
val to_yojson : t -> Yojson.Safe.t
val make : template:Kubernetes.Definitions.Api.Core.V1.Pod_template_spec.t -> ?strategy:Kubernetes.Definitions.Api.Apps.V1.Deployment_strategy.t -> selector: Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Label_selector.t -> ?revision_history_limit:int -> ?replicas:int -> ?progress_deadline_seconds:int -> ?paused:bool -> ?min_ready_seconds:int -> unit -> t
val min_ready_seconds : t -> int option

Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)

val paused : t -> bool option

Indicates that the deployment is paused.

val progress_deadline_seconds : t -> int option

The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a Progress_deadline_exceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.

val replicas : t -> int option

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

val revision_history_limit : t -> int option

The number of old Replica_sets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.

Label selector for pods. Existing Replica_sets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.

The deployment strategy to use to replace existing pods with new ones.

Template describes the pods that will be created.

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

Innovation. Community. Security.