package kubecaml

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

Defines a set of pods (namely those matching the label_selector relative to the given namespace(s)) that this pod should be co_located (affinity) or not co_located (anti_affinity) with, where co_located is defined as running on a node whose value of the label with key <topology_key> matches that of any node on which a pod of the set of pods is running

type t
val to_yojson : t -> Yojson.Safe.t
val make : topology_key:string -> ?namespaces:string list -> ?label_selector: Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Label_selector.t -> unit -> t

A label query over a set of resources, in this case pods.

val namespaces : t -> string list option

namespaces specifies which namespaces the label_selector applies to (matches against); null or empty list means "this pod's namespace"

val topology_key : t -> string

This pod should be co_located (affinity) or not co_located (anti_affinity) with the pods matching the label_selector in the specified namespaces, where co_located is defined as running on a node whose value of the label with key topology_key matches that of any node on which any of the selected pods is running. Empty topology_key is not allowed.

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

Innovation. Community. Security.