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
View Source
V1Endpoints()
Declaration
View Source
V1Endpoints(V1Endpoints)
Declaration
protected V1Endpoints(V1Endpoints original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = ""
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "Endpoints"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "endpoints"
Field Value
Properties
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { 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
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
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
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1Endpoints?)
Declaration
public virtual bool Equals(V1Endpoints? 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 ==(V1Endpoints?, V1Endpoints?)
Declaration
public static bool operator ==(V1Endpoints? left, V1Endpoints? right)
Parameters
Returns
View Source
operator !=(V1Endpoints?, V1Endpoints?)
Declaration
public static bool operator !=(V1Endpoints? left, V1Endpoints? right)
Parameters
Returns
Implements
Extension Methods