Skip to content

Commit 0dfbe8f

Browse files
committed
reference.conf comments
1 parent 4f40d3a commit 0dfbe8f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Diff for: discovery-kubernetes-api/src/main/resources/reference.conf

+22-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,29 @@
33
######################################################
44

55
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+
#
617
# Set the following in your application.conf if you want to use this discovery mechanism:
718
# 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).
827

28+
# liveness-only
929
kubernetes-api {
1030
class = akka.discovery.kubernetes.KubernetesApiServiceDiscovery
1131

@@ -42,8 +62,9 @@ akka.discovery {
4262
container-name = ""
4363
}
4464

65+
# readiness-aware
4566
# All configuration for this discovery method, apart from the class, is shared with kubernetes-api
46-
kubernetes-api-external = {
67+
kubernetes-api-for-client = {
4768
class = akka.discovery.kubernetes.ExternalKubernetesApiServiceDiscovery
4869
}
4970
}

0 commit comments

Comments
 (0)