Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit f47f3d3

Browse files
committed
wip
1 parent abc57b8 commit f47f3d3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

integrateion-test/src/sbt-test/bootstrap-demo/dns-kubernetes/src/main/resources/application.conf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ akka {
77
# provider = "cluster"
88
# }
99

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"
1414
# protocol = "tcp"
1515
# service-name = "bootstrap-demo-kubernetes-dns-internal"
1616
# # Can be removed once https://github.com/akka/akka/issues/25825 is implemented
1717
# service-namespace = ${NAMESPACE}".svc.cluster.local"
18-
# }
19-
# }
20-
# }
18+
}
19+
}
20+
}
2121
}

integrateion-test/src/sbt-test/bootstrap-demo/dns-kubernetes/src/main/scala/foo/ClusterApp.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import akka.http.scaladsl.Http
1212
import akka.http.scaladsl.model._
1313
import akka.http.scaladsl.server.Directives._
1414
import akka.management.AkkaManagement
15-
import akka.management.cluster.bootstrap.ClusterBootstrap
15+
import akka.management.cluster.bootstrap.{ ClusterBootstrap, ClusterBootstrapSettings }
1616
import akka.stream.ActorMaterializer
1717

1818
object ClusterApp {
@@ -25,6 +25,10 @@ object ClusterApp {
2525
val cluster = Cluster(system)
2626

2727
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+
2832
AkkaManagement(system).start()
2933
ClusterBootstrap(system).start()
3034

0 commit comments

Comments
 (0)