File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
k8s-dns-name-resolver/src/main/java/com/evolution/jgrpc/tools/k8sdns Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change 1010import java .util .Objects ;
1111import org .jspecify .annotations .Nullable ;
1212
13- /// **
14- // * A provider for [[K8sDnsNameResolver]].
15- // * <p>
16- // * It is an alternative to the stock io.grpc.internal.DnsNameResolver geared towards better
17- // support
18- // * for resolving addresses of Kubernetes headless service pods by hostname.
19- // * <p>
20- // * The main improvement over `DnsNameResolver` is that this resolver implements live watching of
21- // the
22- // * set of ready pods and notifies the channel when it changes.
23- // * <p>
24- // * This resolver uses the `dnsjava` library for executing queries instead of the JDK built-in
25- // * capabilities. This allows executing DNS queries with caching disabled without changing JVM-wide
26- // * settings.
27- // * <p>
28- // * DNS queries are repeated every 15 seconds by default. The interval can be adjusted using
29- // * [[setRefreshIntervalSeconds]].
30- // * <p>
31- // * Only A-records are supported.
32- // * <p>
33- // * Example target URIs: - `k8s-dns:///my-svc.my-namespace.svc.my-cluster.local` - default port -
34- // * `k8s-dns:///my-svc.my-namespace.svc.my-cluster.local:8080`
35- // * <p>
36- // * This class is thread-safe.
37- // *
38- // * @see [[io.grpc.internal.DnsNameResolverProvider]] [[io.grpc.internal.DnsNameResolver]]
39- // */
40-
4113/**
4214 * {@link NameResolverProvider} for DNS-based GRPC service discovery in Kubernetes.
4315 *
You can’t perform that action at this time.
0 commit comments