package kubecaml

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

Service_port contains information on service's port.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?target_port: Kubernetes.Definitions.Apimachinery.Pkg.Util.Intstr.Int_or_string.t -> ?protocol:string -> port:int -> ?node_port:int -> ?name:string -> unit -> t
val name : t -> string option

The name of this port within the service. This must be a Dns_label. All ports within a Service_spec must have unique names. This maps to the 'name' field in Endpoint_port objects. Optional if only one Service_port is defined on this service.

val node_port : t -> int option

The port on each node on which this service is exposed when type=node_port or Load_balancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto_allocate a port if the Service_type of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport

val port : t -> int

The port that will be exposed by this service.

val protocol : t -> string option

The Ip protocol for this port. Supports "tcp" and "udp". Default is Tcp.

Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an Iana_svc_name. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with cluster_ip=none, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service

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

Innovation. Community. Security.