File tree 1 file changed +22
-1
lines changed
discovery-kubernetes-api/src/main/resources
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 3
3
######################################################
4
4
5
5
akka.discovery {
6
+ # There are two variants of this discovery mechanism:
7
+ #
8
+ # * 'kubernetes-api' is designed for bootstrapping a cluster and does not take readiness
9
+ # into account. It may not be suitable for discovering services outside of the cluster.
10
+ #
11
+ # * 'kubernetes-api-for-client' is designed for discovering services outside of the cluster
12
+ # and takes readiness into account (thus facilitating client side load-balancing) without
13
+ # the need to depend on how a k8s cluster's DNS is configured (e.g. caching).
14
+ #
15
+ # 'kubernetes-api-for-client' IS NOT SUITABLE FOR BOOTSTRAPPING A CLUSTER.
16
+ #
6
17
# Set the following in your application.conf if you want to use this discovery mechanism:
7
18
# method = kubernetes-api
19
+ #
20
+ # If deploying a service to Kubernetes and using this discovery mechanism, set in your application.conf:
21
+ #
22
+ # akka.management.cluster.bootstrap.contact-point-discovery.discovery-method = kubernetes-api
23
+ # akka.discovery.method = kubernetes-api-for-client
24
+ #
25
+ # This would use the liveness-only variant for bootstrap and the readiness-aware variant for discovering
26
+ # the pods in other services (e.g. for gRPC).
8
27
28
+ # liveness-only
9
29
kubernetes-api {
10
30
class = akka.discovery.kubernetes.KubernetesApiServiceDiscovery
11
31
@@ -42,8 +62,9 @@ akka.discovery {
42
62
container-name = ""
43
63
}
44
64
65
+ # readiness-aware
45
66
# All configuration for this discovery method, apart from the class, is shared with kubernetes-api
46
- kubernetes-api-external = {
67
+ kubernetes-api-for-client = {
47
68
class = akka.discovery.kubernetes.ExternalKubernetesApiServiceDiscovery
48
69
}
49
70
}
You can’t perform that action at this time.
0 commit comments