Share via


ServicePortV1.TargetPort Property

Definition

Specifies the port on the target container to which traffic should be directed. Typically used in Kubernetes Service definitions to map incoming traffic to the appropriate port of the application running in a pod.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to