ServiceSpecV1
Classsealednet10.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 PropertiesAllocateLoadBalancerNodePorts get; setbool? Indicates whether node ports should be automatically allocated for a service of type LoadBalancer.
ClusterIp get; setstring? Specifies the IP address assigned to the Kubernetes Service within the cluster.
ClusterIPs getList<string> Represents a list of cluster IP addresses assigned to the Kubernetes Service.
ExternalName get; setstring? Specifies the external DNS name for the Kubernetes Service associated with a ServiceSpecV1.
ExternalTrafficPolicy get; setstring? Specifies how external traffic is routed to the Service's underlying network endpoints.
InternalTrafficPolicy get; setstring? Gets or sets the internal traffic policy for the Kubernetes Service.
IpFamilyPolicy get; setstring? Defines the IP family policy for a Kubernetes Service in API version V1.
LoadBalancerClass get; setstring? Specifies the class of the load balancer to be used for the service.
LoadBalancerIp get; setstring? Gets or sets the IP address to assign to the external LoadBalancer of the Service.
List<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.
PublishNotReadyAddresses get; 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.
SessionAffinity get; setstring? Defines the session affinity setting for a Kubernetes Service in API version V1.
SessionAffinityConfig get; set Represents the session affinity configuration for a Kubernetes Service.
TrafficDistribution get; setstring? Specifies the traffic distribution policy for the Kubernetes Service.