ServiceSpecV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the specification for a Kubernetes Service resource.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class ServiceSpecV1
[<YamlDotNet.Serialization.YamlSerializable>]
type ServiceSpecV1 = class
Public NotInheritable Class ServiceSpecV1
- Inheritance
-
ServiceSpecV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
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.
Constructors
ServiceSpecV1() |
Properties
AllocateLoadBalancerNodePorts |
Indicates whether node ports should be automatically allocated for a service of type LoadBalancer. |
ClusterIp |
Specifies the IP address assigned to the Kubernetes Service within the cluster. |
ClusterIPs |
Represents a list of cluster IP addresses assigned to the Kubernetes Service. |
ExternalIPs |
Represents a list of external IP addresses associated with the service. |
ExternalName |
Specifies the external DNS name for the Kubernetes Service associated with a ServiceSpecV1. |
ExternalTrafficPolicy |
Specifies how external traffic is routed to the Service's underlying network endpoints. |
HealthCheckNodePort |
Gets or sets the health check node port for the Kubernetes Service. |
InternalTrafficPolicy |
Gets or sets the internal traffic policy for the Kubernetes Service. |
IpFamilies |
A list of IP families (e.g., IPv4, IPv6) used by the Kubernetes Service. |
IpFamilyPolicy |
Defines the IP family policy for a Kubernetes Service in API version V1. |
LoadBalancerClass |
Specifies the class of the load balancer to be used for the service. |
LoadBalancerIp |
Gets or sets the IP address to assign to the external LoadBalancer of the Service. |
LoadBalancerSourceRanges |
Specifies a list of IP address ranges that are allowed to access the Kubernetes Service when the Service type is "LoadBalancer". |
Ports |
Represents the collection of port configurations for a Kubernetes Service. |
PublishNotReadyAddresses |
Gets or sets a value indicating whether to publish the addresses of not-ready pods for a Kubernetes Service. |
Selector |
Represents the selector field in the Kubernetes Service specification. |
SessionAffinity |
Defines the session affinity setting for a Kubernetes Service in API version V1. |
SessionAffinityConfig |
Represents the session affinity configuration for a Kubernetes Service. |
TrafficDistribution |
Specifies the traffic distribution policy for the Kubernetes Service. |
Type |
Gets or sets the type of the Kubernetes Service. |