This repository was archived by the owner on May 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
integrateion-test/src/sbt-test/bootstrap-demo/dns-kubernetes/src/main Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 7
7
# provider = "cluster"
8
8
# }
9
9
10
- # management {
11
- # cluster.bootstrap {
12
- # contact-point-discovery {
13
- # port-name = "akka-mgmt-http"
10
+ management {
11
+ cluster.bootstrap {
12
+ contact-point-discovery {
13
+ port-name = "akka-mgmt-http"
14
14
# protocol = "tcp"
15
15
# service-name = "bootstrap-demo-kubernetes-dns-internal"
16
16
# # Can be removed once https://github.com/akka/akka/issues/25825 is implemented
17
17
# service-namespace = ${NAMESPACE}".svc.cluster.local"
18
- # }
19
- # }
20
- # }
18
+ }
19
+ }
20
+ }
21
21
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import akka.http.scaladsl.Http
12
12
import akka .http .scaladsl .model ._
13
13
import akka .http .scaladsl .server .Directives ._
14
14
import akka .management .AkkaManagement
15
- import akka .management .cluster .bootstrap .ClusterBootstrap
15
+ import akka .management .cluster .bootstrap .{ ClusterBootstrap , ClusterBootstrapSettings }
16
16
import akka .stream .ActorMaterializer
17
17
18
18
object ClusterApp {
@@ -25,6 +25,10 @@ object ClusterApp {
25
25
val cluster = Cluster (system)
26
26
27
27
system.log.info(" Starting Akka Management" )
28
+
29
+ val settings = ClusterBootstrapSettings (system.settings.config, system.log)
30
+ sys.error(s " portName: ${settings.contactPointDiscovery.portName}" )
31
+
28
32
AkkaManagement (system).start()
29
33
ClusterBootstrap (system).start()
30
34
You can’t perform that action at this time.
0 commit comments