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
View Source
V1EndpointSlice()
Declaration
View Source
V1EndpointSlice(V1EndpointSlice)
Declaration
protected V1EndpointSlice(V1EndpointSlice original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = "discovery.k8s.io"
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "EndpointSlice"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "endpointslices"
Field Value
Properties
View Source
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
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Standard object's metadata.
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
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
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1EndpointSlice?)
Declaration
public virtual bool Equals(V1EndpointSlice? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1EndpointSlice?, V1EndpointSlice?)
Declaration
public static bool operator ==(V1EndpointSlice? left, V1EndpointSlice? right)
Parameters
Returns
View Source
operator !=(V1EndpointSlice?, V1EndpointSlice?)
Declaration
public static bool operator !=(V1EndpointSlice? left, V1EndpointSlice? right)
Parameters
Returns
Implements
Extension Methods