package kubecaml

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

Container_port represents a network port in a single container.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?protocol:string -> ?name:string -> ?host_port:int -> ?host_ip:string -> container_port:int -> unit -> t
val container_port : t -> int

Number of port to expose on the pod's Ip address. This must be a valid port number, 0 < x < 65536.

val host_ip : t -> string option

What host Ip to bind the external port to.

val host_port : t -> int option

Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If Host_network is specified, this must match Container_port. Most containers do not need this.

val name : t -> string option

If specified, this must be an Iana_svc_name and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.

val protocol : t -> string option

Protocol for port. Must be Udp or Tcp. Defaults to "tcp".

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