Skip to content
Docs Try Aspire
Docs Try

ServicePortV1

Class sealed net8.0
📦 Aspire.Hosting.Kubernetes v13.3.0-preview.1.26254.5
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.