ServiceSpecV1.Ports 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.
Represents the collection of port configurations for a Kubernetes Service.
[YamlDotNet.Serialization.YamlMember(Alias="ports")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.ServicePortV1> Ports { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="ports")>]
member this.Ports : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.ServicePortV1>
Public ReadOnly Property Ports As List(Of ServicePortV1)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
This property defines the list of ports through which the service can be accessed. Each port is configured using the ServicePortV1 class, specifying details such as the port number, protocol, target port, and node port. It is key in exposing and routing traffic to the appropriate underlying workloads.