public class KubernetesPodIpFinder
extends org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder
In order to find the desired pods IP addresses, one could query the Kubernetes API for endpoints of a Service but that may prove too much of a hurdle to maintain. Since DNS integration is a common best-practice when assembling Kubernetes clusters, we will rely on SRV lookups.
| Constructor and Description |
|---|
KubernetesPodIpFinder() |
KubernetesPodIpFinder(boolean shared) |
| Modifier and Type | Method and Description |
|---|---|
Collection<InetSocketAddress> |
getRegisteredAddresses() |
void |
setServiceName(String serviceName)
Parses provided service lookup name.
|
String |
toString() |
registerAddresses, setAddresses, unregisterAddressespublic KubernetesPodIpFinder()
public KubernetesPodIpFinder(boolean shared)
@IgniteSpiConfiguration(optional=true) public void setServiceName(String serviceName) throws org.apache.ignite.spi.IgniteSpiException
serviceName - the service name to use in lookup queries.org.apache.ignite.spi.IgniteSpiExceptionpublic Collection<InetSocketAddress> getRegisteredAddresses()
getRegisteredAddresses in interface org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFindergetRegisteredAddresses in class org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinderpublic String toString()
toString in class org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinderCopyright © 2016. All rights reserved.