Class V1Endpoints
Endpoints is a collection of endpoints that implement the actual service.
Example:
Name: "mysvc",
Subsets: [
{
Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
},
{
Addresses: [{"ip": "10.10.3.3"}],
Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
},
]
Endpoints is a legacy API and does not contain information about all Service
features. Use discoveryv1.EndpointSlice for complete information about Service
endpoints.
Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "", Kind = "Endpoints", ApiVersion = "v1", PluralName = "endpoints")]
public record V1Endpoints : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1Endpoints>
Constructors
V1Endpoints()
Declaration
V1Endpoints(V1Endpoints)
Declaration
protected V1Endpoints(V1Endpoints original)
Parameters
Fields
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
KubeGroup
Declaration
public const string KubeGroup = ""
Field Value
KubeKind
Declaration
public const string KubeKind = "Endpoints"
Field Value
KubePluralName
Declaration
public const string KubePluralName = "endpoints"
Field Value
Properties
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
Subsets
The set of all endpoints is the union of all subsets. Addresses are placed into
subsets according to the IPs they share. A single address with multiple ports,
some of which are ready and some of which are not (because they come from
different containers) will result in the address being displayed in different
subsets for the different ports. No address will appear in both Addresses and
NotReadyAddresses in the same subset. Sets of addresses and ports that comprise
a service.
Declaration
[JsonPropertyName("subsets")]
public IList<V1EndpointSubset> Subsets { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1Endpoints?)
Declaration
public virtual bool Equals(V1Endpoints? 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 ==(V1Endpoints?, V1Endpoints?)
Declaration
public static bool operator ==(V1Endpoints? left, V1Endpoints? right)
Parameters
Returns
operator !=(V1Endpoints?, V1Endpoints?)
Declaration
public static bool operator !=(V1Endpoints? left, V1Endpoints? right)
Parameters
Returns
Implements
Extension Methods