Class Endpoint
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.discovery.v1beta1.Endpoint
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<EndpointBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Endpoint extends Object implements io.fabric8.kubernetes.api.builder.Editable<EndpointBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
Endpoint represents a single logical "backend" implementing a service.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Endpoint()No args constructor for use in serializationEndpoint(List<String> addresses, EndpointConditions conditions, EndpointHints hints, String hostname, String nodeName, io.fabric8.kubernetes.api.model.ObjectReference targetRef, Map<String,String> topology)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAddresses()addresses of this endpoint.EndpointConditionsgetConditions()Endpoint represents a single logical "backend" implementing a service.EndpointHintsgetHints()Endpoint represents a single logical "backend" implementing a service.StringgetHostname()hostname of this endpoint.StringgetNodeName()nodeName represents the name of the Node hosting this endpoint.io.fabric8.kubernetes.api.model.ObjectReferencegetTargetRef()Endpoint represents a single logical "backend" implementing a service.Map<String,String>getTopology()topology contains arbitrary topology information associated with the endpoint.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAddresses(List<String> addresses)addresses of this endpoint.voidsetConditions(EndpointConditions conditions)Endpoint represents a single logical "backend" implementing a service.voidsetHints(EndpointHints hints)Endpoint represents a single logical "backend" implementing a service.voidsetHostname(String hostname)hostname of this endpoint.voidsetNodeName(String nodeName)nodeName represents the name of the Node hosting this endpoint.voidsetTargetRef(io.fabric8.kubernetes.api.model.ObjectReference targetRef)Endpoint represents a single logical "backend" implementing a service.voidsetTopology(Map<String,String> topology)topology contains arbitrary topology information associated with the endpoint.EndpointBuildertoBuilder()
-
-
-
Constructor Detail
-
Endpoint
public Endpoint()
No args constructor for use in serialization
-
Endpoint
public Endpoint(List<String> addresses, EndpointConditions conditions, EndpointHints hints, String hostname, String nodeName, io.fabric8.kubernetes.api.model.ObjectReference targetRef, Map<String,String> topology)
-
-
Method Detail
-
getAddresses
public List<String> getAddresses()
addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100.
-
setAddresses
public void setAddresses(List<String> addresses)
addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100.
-
getConditions
public EndpointConditions getConditions()
Endpoint represents a single logical "backend" implementing a service.
-
setConditions
public void setConditions(EndpointConditions conditions)
Endpoint represents a single logical "backend" implementing a service.
-
getHints
public EndpointHints getHints()
Endpoint represents a single logical "backend" implementing a service.
-
setHints
public void setHints(EndpointHints hints)
Endpoint represents a single logical "backend" implementing a service.
-
getHostname
public String getHostname()
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.
-
setHostname
public void setHostname(String 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.
-
getNodeName
public String getNodeName()
nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.
-
setNodeName
public void setNodeName(String nodeName)
nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.
-
getTargetRef
public io.fabric8.kubernetes.api.model.ObjectReference getTargetRef()
Endpoint represents a single logical "backend" implementing a service.
-
setTargetRef
public void setTargetRef(io.fabric8.kubernetes.api.model.ObjectReference targetRef)
Endpoint represents a single logical "backend" implementing a service.
-
getTopology
public Map<String,String> getTopology()
topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the nodewhere the endpoint is located. This should match the corresponding
node label.
* topology.kubernetes.io/zone: the value indicates the zone where the
endpoint is located. This should match the corresponding node label.
* topology.kubernetes.io/region: the value indicates the region where the
endpoint is located. This should match the corresponding node label.
This field is deprecated and will be removed in future api versions.
-
setTopology
public void setTopology(Map<String,String> topology)
topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the nodewhere the endpoint is located. This should match the corresponding
node label.
* topology.kubernetes.io/zone: the value indicates the zone where the
endpoint is located. This should match the corresponding node label.
* topology.kubernetes.io/region: the value indicates the region where the
endpoint is located. This should match the corresponding node label.
This field is deprecated and will be removed in future api versions.
-
edit
public EndpointBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<EndpointBuilder>
-
toBuilder
public EndpointBuilder toBuilder()
-
-