Skip to content
Docs Try Aspire

ServicePortV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a port configuration for a Kubernetes Service in API version V1.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ServicePortV1
{
// ...
}
This class is used to configure the port settings for a Kubernetes Service. It includes details used to define how the Service exposes ports and communicates with underlying pods.