Cloud API Overview > @adpt/cloud > k8s > ServicePort
k8s.ServicePort interface
Signature:
export interface ServicePort
Properties
Property | Type | Description |
---|---|---|
name | string | The name of this port within the service. |
nodePort | number | The port on each node on which this service is exposed when type=NodePort or LoadBalancer. |
port | number | The port that will be exposed by this service. |
protocol | string | The IP protocol for this port.Supports "TCP" and "UDP".Default is TCP. |
targetPort | number | string | Number or name of the port to access on the pods targeted by the service. |