Share via


ServicePortV1.NodePort Property

Definition

Gets or sets the port on the node where the service is exposed. This is used for NodePort services to specify the static port number on which the service is accessible on each selected node. If not set, a port will be automatically assigned from the NodePort range determined by the system.

[YamlDotNet.Serialization.YamlMember(Alias="nodePort")]
public int? NodePort { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="nodePort")>]
member this.NodePort : Nullable<int> with get, set
Public Property NodePort As Nullable(Of Integer)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to