Cloud API Overview > @adpt/cloud > k8s > ServicePort > nodePort
k8s.ServicePort.nodePort property
The port on each node on which this service is exposed when type=NodePort or LoadBalancer.
Signature:
nodePort?: number;
Remarks
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: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport