Show / Hide Table of Contents

Class V1Endpoint

Endpoint represents a single logical "backend" implementing a service.

Inheritance
object
V1Endpoint
Implements
IEquatable<V1Endpoint>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1Endpoint : IEquatable<V1Endpoint>

Constructors

V1Endpoint()

Declaration
public V1Endpoint()

V1Endpoint(V1Endpoint)

Declaration
protected V1Endpoint(V1Endpoint original)
Parameters
Type Name Description
V1Endpoint original

Properties

Addresses

addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them.

Declaration
[JsonPropertyName("addresses")]
public IList<string> Addresses { get; set; }
Property Value
Type Description
IList<string>

Conditions

conditions contains information about the current status of the endpoint.

Declaration
[JsonPropertyName("conditions")]
public V1EndpointConditions Conditions { get; set; }
Property Value
Type Description
V1EndpointConditions

DeprecatedTopology

deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.

Declaration
[JsonPropertyName("deprecatedTopology")]
public IDictionary<string, string> DeprecatedTopology { get; set; }
Property Value
Type Description
IDictionary<string, string>

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

Hints

hints contains information associated with how an endpoint should be consumed.

Declaration
[JsonPropertyName("hints")]
public V1EndpointHints Hints { get; set; }
Property Value
Type Description
V1EndpointHints

Hostname

hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.

Declaration
[JsonPropertyName("hostname")]
public string Hostname { get; set; }
Property Value
Type Description
string

NodeName

nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.

Declaration
[JsonPropertyName("nodeName")]
public string NodeName { get; set; }
Property Value
Type Description
string

TargetRef

targetRef is a reference to a Kubernetes object that represents this endpoint.

Declaration
[JsonPropertyName("targetRef")]
public V1ObjectReference TargetRef { get; set; }
Property Value
Type Description
V1ObjectReference

Zone

zone is the name of the Zone this endpoint exists in.

Declaration
[JsonPropertyName("zone")]
public string Zone { get; set; }
Property Value
Type Description
string

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1Endpoint?)

Declaration
public virtual bool Equals(V1Endpoint? other)
Parameters
Type Name Description
V1Endpoint other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1Endpoint?, V1Endpoint?)

Declaration
public static bool operator ==(V1Endpoint? left, V1Endpoint? right)
Parameters
Type Name Description
V1Endpoint left
V1Endpoint right
Returns
Type Description
bool

operator !=(V1Endpoint?, V1Endpoint?)

Declaration
public static bool operator !=(V1Endpoint? left, V1Endpoint? right)
Parameters
Type Name Description
V1Endpoint left
V1Endpoint right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX