Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

Update configuration for Cluster Bootstrap Discovery Method #47

Open
TimMoore opened this issue Sep 24, 2018 · 1 comment
Open

Update configuration for Cluster Bootstrap Discovery Method #47

TimMoore opened this issue Sep 24, 2018 · 1 comment

Comments

@TimMoore
Copy link

This is the current configuration for the Cluster Bootstrap Discovery Method:

discovery {
method = kubernetes-api
kubernetes-api {
pod-label-selector = "appName=%s"
pod-namespace = ${?RP_NAMESPACE}
}
}

discovery {
method = kubernetes-api
kubernetes-api {
pod-label-selector = "appName=%s"
pod-namespace = ${?RP_NAMESPACE}
}
}

This globally sets the default discovery method to kubernetes-api, which is only appropriate to use for Cluster Bootstrap and not for inter-service discovery.

While this recipe does not currently use Akka Discovery for anything else, users are likely to copy it as it is. Anyone using the Akka gRPC integration will need another global default discovery method, and in the future, Lagom will have a ServiceLocator implementation based on Akka Discovery.

The recipe should be updated to set akka.management.cluster.bootstrap.contact-point-discovery.discovery-method instead of akka.discovery.method, as described in akka/akka-management#316.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants