Skip to content
Docs Try Aspire

ServicePortV1

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