Skip to content
Docs Try Aspire

Service Constructors

Class Constructors 1 member
Represents a Kubernetes Service resource in the v1 API version.
Represents a Kubernetes Service resource in the v1 API version.
public sealed class Service
{
public Service()
{
// ...
}
}
The Service class is used to define and configure networking Services within a Kubernetes cluster. It inherits common Kubernetes resource attributes from the BaseKubernetesResource class and provides additional specific configurations through its Spec property, which describes the desired behavior of the Service.