Kazan v0.9.0 Kazan.Apis.Core.V1.ServicePort View Source

ServicePort contains information on service’s port.

OpenAPI Definition: io.k8s.api.core.v1.ServicePort

Properties

  • name :: String

    • The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the ‘Name’ field in EndpointPort objects. Optional if only one ServicePort is defined on this service.
  • node_port :: Integer

    • The port on each node on which this service is exposed when type=NodePort or LoadBalancer. 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 ServiceType of this Service requires one. More info.
  • port :: Integer

    • The port that will be exposed by this service.
  • protocol :: String

    • The IP protocol for this port. Supports “TCP” and “UDP”. Default is TCP.
  • target_port :: Kazan.Models.Apimachinery.Util.Intstr.IntOrString

    • IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.