Share via


ContainerPortV1.HostPort Property

Definition

Gets or sets the port number on the host machine that is mapped to the container's port. This enables external access to the container's service.

[YamlDotNet.Serialization.YamlMember(Alias="hostPort")]
public Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1? HostPort { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="hostPort")>]
member this.HostPort : Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 with get, set
Public Property HostPort As Int32OrStringV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to