Class Endpoint
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.discovery.v1.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, Map<String,String> deprecatedTopology, EndpointHints hints, String hostname, String nodeName, io.fabric8.kubernetes.api.model.ObjectReference targetRef, String zone)
-
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.Map<String,String>getDeprecatedTopology()deprecatedTopology contains topology information part of the v1beta1 API.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.StringgetZone()zone is the name of the Zone this endpoint exists in.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.voidsetDeprecatedTopology(Map<String,String> deprecatedTopology)deprecatedTopology contains topology information part of the v1beta1 API.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.voidsetZone(String zone)zone is the name of the Zone this endpoint exists in.EndpointBuildertoBuilder()
-
-
-
Constructor Detail
-
Endpoint
public Endpoint()
No args constructor for use in serialization
-
Endpoint
public Endpoint(List<String> addresses, EndpointConditions conditions, Map<String,String> deprecatedTopology, EndpointHints hints, String hostname, String nodeName, io.fabric8.kubernetes.api.model.ObjectReference targetRef, String zone)
-
-
Method Detail
-
getAddresses
public List<String> getAddresses()
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.
-
setAddresses
public void setAddresses(List<String> 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.
-
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.
-
getDeprecatedTopology
public Map<String,String> getDeprecatedTopology()
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.
-
setDeprecatedTopology
public void setDeprecatedTopology(Map<String,String> 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.
-
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.
-
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.
-
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.
-
getZone
public String getZone()
zone is the name of the Zone this endpoint exists in.
-
setZone
public void setZone(String zone)
zone is the name of the Zone this endpoint exists in.
-
edit
public EndpointBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<EndpointBuilder>
-
toBuilder
public EndpointBuilder toBuilder()
-
-