This repository was archived by the owner on May 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +11
-35
lines changed
integrateion-test/src/sbt-test/bootstrap-demo/dns-kubernetes
service-discovery/src/main/resources Expand file tree Collapse file tree 8 files changed +11
-35
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ lazy val akkaClusterBootstrap = createProject("reactive-lib-akka-cluster-bootstr
124
124
libraryDependencies ++= Seq (
125
125
" com.lightbend.akka.discovery" %% " akka-discovery-kubernetes-api" % Versions .akkaManagement,
126
126
" com.lightbend.akka.discovery" %% " akka-discovery-marathon-api" % Versions .akkaManagement,
127
+ " com.lightbend.akka.discovery" %% " akka-discovery-dns" % Versions .akkaManagement,
127
128
" com.lightbend.akka.management" %% " akka-management-cluster-bootstrap" % Versions .akkaManagement,
128
129
" com.typesafe.akka" %% " akka-testkit" % Versions .akka % " test" ,
129
130
" com.typesafe.akka" %% " akka-cluster" % Versions .akka % " provided"
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ ThisBuild / version := "0.1.5"
8
8
ThisBuild / organization := " com.example"
9
9
ThisBuild / scalaVersion := " 2.12.7"
10
10
11
- // This is where we wire the freshly baked reactive-lib
12
- ThisBuild / reactiveLibVersion := freshReactiveLibVersion
13
-
14
11
lazy val isOpenShift = {
15
12
sys.props.get(" test.openshift" ).isDefined
16
13
}
@@ -30,10 +27,14 @@ lazy val root = (project in file("."))
30
27
" -Xlint" ,
31
28
" -Yno-adapted-args" ,
32
29
),
30
+ // This is where we wire the freshly baked reactive-lib
31
+ reactiveLibVersion := freshReactiveLibVersion,
33
32
libraryDependencies ++= Seq (
34
33
akkaManagement,
35
34
akkaClusterHttp,
36
35
akkaCluster,
36
+ akkaClusterSharding,
37
+ akkaClusterTools,
37
38
akkaDiscoveryDns,
38
39
akkaSlj4j,
39
40
logback,
Original file line number Diff line number Diff line change 95
95
- name : " RP_ENDPOINT_AKKA_REMOTE_PORT"
96
96
value : " 10000"
97
97
- name : " RP_JAVA_OPTS"
98
- value : " -Dconfig.resource=rp-application.conf -Dakka.management.cluster.bootstrap.contact-point-discovery.discovery-method=akka.discovery.akka-dns -Dakka.management.cluster.bootstrap.contact-point-discovery.service-name=bootstrap-demo-kubernetes-dns-internal -Dakka.management.cluster.bootstrap.contact-point-discovery.required-contact-point-nr=2 -Dakka.discovery.kubernetes-api.pod-label-selector=actorSystemName=hoboken1 "
98
+ value : " -Dconfig.resource=rp-application.conf -Dakka.management.cluster.bootstrap.contact-point-discovery.discovery-method=akka.discovery.akka-dns -Dakka.management.cluster.bootstrap.contact-point-discovery.service-name=bootstrap-demo-kubernetes-dns-internal -Dakka.management.cluster.bootstrap.contact-point-discovery.required-contact-point-nr=2"
99
99
- name : " RP_KUBERNETES_POD_IP"
100
100
valueFrom :
101
101
fieldRef :
Original file line number Diff line number Diff line change 95
95
- name : " RP_ENDPOINT_AKKA_REMOTE_PORT"
96
96
value : " 10000"
97
97
- name : " RP_JAVA_OPTS"
98
- value : " -Dconfig.resource=rp-application.conf -Dakka.management.cluster.bootstrap.contact-point-discovery.discovery-method=akka.discovery.akka-dns -Dakka.management.cluster.bootstrap.contact-point-discovery.service-name=bootstrap-demo-kubernetes-dns-internal -Dakka.management.cluster.bootstrap.contact-point-discovery.required-contact-point-nr=2 -Dakka .discovery.kubernetes-api.pod-label-selector=actorSystemName=hoboken1 "
98
+ value : " -Dconfig.resource=rp-application.conf -Dakka.management.cluster.bootstrap.contact-point-discovery.discovery-method=akka.discovery.akka-dns -Dakka.management.cluster.bootstrap.contact-point-discovery.service-name=bootstrap-demo-kubernetes-dns-internal -Dakka.management.cluster.bootstrap.contact-point-discovery.discovery-method=akka .discovery.akka-dns "
99
99
- name : " RP_KUBERNETES_POD_IP"
100
100
valueFrom :
101
101
fieldRef :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import sbt._
2
2
3
3
object Dependencies {
4
4
val akkaVersion = " 2.5.18"
5
- val akkaManagementVersion = " 0.18.0 " // 0. 20.0
5
+ val akkaManagementVersion = " 0.20.0"
6
6
val freshReactiveLibVersion = sys.props.get(" plugin.version" ).getOrElse {
7
7
sys.error(""" |The system property 'plugin.version' is not defined.
8
8
|Specify this property using the scriptedLaunchOpts -D.""" .stripMargin)
Original file line number Diff line number Diff line change 1
1
akka {
2
2
loglevel = DEBUG
3
-
4
- io.dns.resolver = async-dns
5
-
6
- # actor {
7
- # provider = "cluster"
8
- # }
9
-
10
- # management {
11
- # cluster.bootstrap {
12
- # contact-point-discovery {
13
- # port-name = "akka-mgmt-http"
14
- # protocol = "tcp"
15
- # service-name = "bootstrap-demo-kubernetes-dns-internal"
16
- # # Can be removed once https://github.com/akka/akka/issues/25825 is implemented
17
- # service-namespace = ${NAMESPACE}".svc.cluster.local"
18
- # }
19
- # }
20
- # }
21
3
}
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ object ClusterApp {
22
22
implicit val system = ActorSystem ()
23
23
implicit val materializer = ActorMaterializer ()
24
24
implicit val executionContext = system.dispatcher
25
- val cluster = Cluster (system)
26
25
26
+ val cluster = Cluster (system)
27
27
system.log.info(" Starting Akka Management" )
28
- AkkaManagement (system).start()
29
- ClusterBootstrap (system).start()
28
+ // AkkaManagement(system).start()
29
+ // ClusterBootstrap(system).start()
30
30
31
31
system.actorOf(
32
32
ClusterSingletonManager .props(
Original file line number Diff line number Diff line change 1
- # TODO: This config should be generated at runtime as it is platform-specific, or this project needs platform-specific
2
- # configs that are included dynamically depending upon platform, perhaps via -Dconfig.resource
3
-
4
1
akka {
5
2
io {
6
3
dns {
7
4
resolver = async-dns
8
- async-dns {
9
- provider-object = "com.lightbend.rp.asyncdns.AsyncDnsProvider"
10
- resolve-srv = true
11
- resolv-conf = on
12
- }
13
5
}
14
6
}
15
7
}
You can’t perform that action at this time.
0 commit comments