ServiceSpecV1
Class sealed net10.0
Defines the specification for a Kubernetes Service resource.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ServiceSpecV1{ // ...} 21 members
Remarks
Section titled Remarks This class represents various attributes that define the behavior and configuration of a Kubernetes Service, such as type, IP addresses, load balancer settings, traffic policies, selectors, ports, and session affinity options.
Constructors1
Section titled ConstructorsProperties20
Section titled PropertiesAllocateLoadBalancerNodePortsget; setbool? Indicates whether node ports should be automatically allocated for a service of type LoadBalancer.
ClusterIpget; setstring? Specifies the IP address assigned to the Kubernetes Service within the cluster.
ClusterIPsgetList<string> Represents a list of cluster IP addresses assigned to the Kubernetes Service.
ExternalIPsgetList<string> Represents a list of external IP addresses associated with the service.
ExternalNameget; setstring? Specifies the external DNS name for the Kubernetes Service associated with a ServiceSpecV1.
ExternalTrafficPolicyget; setstring? Specifies how external traffic is routed to the Service's underlying network endpoints.
HealthCheckNodePortget; setint? Gets or sets the health check node port for the Kubernetes Service.
InternalTrafficPolicyget; setstring? Gets or sets the internal traffic policy for the Kubernetes Service.
IpFamiliesgetList<string> A list of IP families (e.g., IPv4, IPv6) used by the Kubernetes Service.
IpFamilyPolicyget; setstring? Defines the IP family policy for a Kubernetes Service in API version V1.
LoadBalancerClassget; setstring? Specifies the class of the load balancer to be used for the service.
LoadBalancerIpget; setstring? Gets or sets the IP address to assign to the external LoadBalancer of the Service.
LoadBalancerSourceRangesgetList<string> Specifies a list of IP address ranges that are allowed to access the Kubernetes Service when the Service type is "LoadBalancer".
Portsget Represents the collection of port configurations for a Kubernetes Service.
PublishNotReadyAddressesget; setbool? Gets or sets a value indicating whether to publish the addresses of not-ready pods for a Kubernetes Service.
Selectorget; setDictionary<string, string> Represents the selector field in the Kubernetes Service specification.
SessionAffinityget; setstring? Defines the session affinity setting for a Kubernetes Service in API version V1.
SessionAffinityConfigget; set Represents the session affinity configuration for a Kubernetes Service.
TrafficDistributionget; setstring? Specifies the traffic distribution policy for the Kubernetes Service.
Typeget; setstring Gets or sets the type of the Kubernetes Service.