DnsPeerDiscovery

class DnsPeerDiscovery(lookup: SrvLookup = JndiSrvLookup(), namespaceFile: Path = SERVICE_ACCOUNT_NAMESPACE) : PeerDiscovery

wow.peer.discovery=dns, the default: a peer service's nodes are the targets of the DNS SRV records name-template names after it, _internal._tcp.{service}-cluster.{namespace}.svc by default, each http://<target>:<port>. Kubernetes publishes one such record per pod behind a headless Service, whose targets resolve to the pods' IPs, the addresses their nodes advertise. A peer's {namespace} is its namespaces.<service>, else the node's own: namespace, else that of the pod's service account, from namespaceFile.

Constructors

Link copied to clipboard
constructor(lookup: SrvLookup = JndiSrvLookup(), namespaceFile: Path = SERVICE_ACCOUNT_NAMESPACE)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val options: List<ProviderOption<*>>
Link copied to clipboard
open override val type: String

Functions

Link copied to clipboard
open override fun open(config: PeerDiscoveryConfig): PeerTargets