EndpointPort

A network port definition shared by all endpoints in the slice. An EndpointSlice may have up to 100 ports.

Container OrchestrationKubernetesLoad BalancingNetworkingService Discovery

Properties

Name Type Description
name string Port name. Must match a port name in the parent Service. Must be unique within the ports list.
port integer Port number.
protocol string Network protocol. Defaults to TCP.
appProtocol string Application-layer protocol hint for this port.
View JSON Schema on GitHub

JSON Schema

kubernetes-services-endpointport-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EndpointPort",
  "title": "EndpointPort",
  "type": "object",
  "description": "A network port definition shared by all endpoints in the slice. An EndpointSlice may have up to 100 ports.",
  "properties": {
    "name": {
      "type": "string",
      "description": "Port name. Must match a port name in the parent Service. Must be unique within the ports list.",
      "maxLength": 15
    },
    "port": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "Port number."
    },
    "protocol": {
      "type": "string",
      "enum": [
        "TCP",
        "UDP",
        "SCTP"
      ],
      "description": "Network protocol. Defaults to TCP.",
      "default": "TCP"
    },
    "appProtocol": {
      "type": "string",
      "description": "Application-layer protocol hint for this port."
    }
  }
}