Class V1EndpointSlice
EndpointSlice represents a set of service endpoints. Most EndpointSlices are
created by the EndpointSlice controller to represent the Pods selected by
Service objects. For a given service there may be multiple EndpointSlice objects
which must be joined to produce the full set of endpoints; you can find all of
the slices for a given service by listing EndpointSlices in the service's
namespace whose kubernetes.io/service-name label contains the service's name.
Inheritance
V1EndpointSlice
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "discovery.k8s.io", Kind = "EndpointSlice", ApiVersion = "v1", PluralName = "endpointslices")]
public record V1EndpointSlice : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1EndpointSlice>
Constructors
V1EndpointSlice()
Declaration
V1EndpointSlice(V1EndpointSlice)
Declaration
protected V1EndpointSlice(V1EndpointSlice original)
Parameters
Fields
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
KubeGroup
Declaration
public const string KubeGroup = "discovery.k8s.io"
Field Value
KubeKind
Declaration
public const string KubeKind = "EndpointSlice"
Field Value
KubePluralName
Declaration
public const string KubePluralName = "endpointslices"
Field Value
Properties
AddressType
addressType specifies the type of address carried by this EndpointSlice. All
addresses in this slice must be the same type. This field is immutable after
creation. The following address types are currently supported: * IPv4:
Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN:
Represents a Fully Qualified Domain Name. (Deprecated) The EndpointSlice
controller only generates, and kube-proxy only processes, slices of addressType
"IPv4" and "IPv6". No semantics are defined for the "FQDN" type.
Declaration
[JsonPropertyName("addressType")]
public string AddressType { get; set; }
Property Value
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
Endpoints
endpoints is a list of unique endpoints in this slice. Each slice may include a
maximum of 1000 endpoints.
Declaration
[JsonPropertyName("endpoints")]
public IList<V1Endpoint> Endpoints { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Standard object's metadata.
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
Ports
ports specifies the list of network ports exposed by each endpoint in this
slice. Each port must have a unique name. Each slice may include a maximum of
100 ports. Services always have at least 1 port, so EndpointSlices generated by
the EndpointSlice controller will likewise always have at least 1 port.
EndpointSlices used for other purposes may have an empty ports list.
Declaration
[JsonPropertyName("ports")]
public IList<Discoveryv1EndpointPort> Ports { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1EndpointSlice?)
Declaration
public virtual bool Equals(V1EndpointSlice? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1EndpointSlice?, V1EndpointSlice?)
Declaration
public static bool operator ==(V1EndpointSlice? left, V1EndpointSlice? right)
Parameters
Returns
operator !=(V1EndpointSlice?, V1EndpointSlice?)
Declaration
public static bool operator !=(V1EndpointSlice? left, V1EndpointSlice? right)
Parameters
Returns
Implements
Extension Methods