ServicePortV1.TargetPort Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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