Skip to content

Commit

Permalink
Add support for istio mesh cluster bootstrap
Browse files Browse the repository at this point in the history
* Update to latest version of akka-management
* Include workarounds to make cluster bootstrap work with istio as documented in akka/akka-management#209 (comment)
  • Loading branch information
adarshaj committed Nov 20, 2018
1 parent 086c1be commit fc7e9c7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enablePlugins(JavaServerAppPackaging, DockerPlugin)

val akkaVersion = "2.5.17"
val akkaHttpVersion = "10.1.5"
val akkaManagementVersion = "0.18.0"
val akkaManagementVersion = "0.19.0"

libraryDependencies ++=Seq(
"com.typesafe.akka" %% "akka-persistence" % akkaVersion,
Expand Down
16 changes: 16 additions & 0 deletions k8s/istio-mesh-routing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: akka-simple-cluster
spec:
hosts:
- "*.default.pod.cluster.local"
location: MESH_INTERNAL
ports:
- number: 2551
name: "remoting"
protocol: TCP
- number: 8558
name: "management"
protocol: HTTP
resolution: NONE
16 changes: 16 additions & 0 deletions k8s/simple-akka-cluster-service-clusterIP.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: akka-simple-cluster-cluster-ip
spec:
ports:
- name: remoting
port: 2551
protocol: TCP
targetPort: 2551
- name: management
port: 8558
protocol: TCP
targetPort: 8558
selector:
app: akka-simple-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
- protocol: TCP
name: api
port: 8080
targetPort: api
targetPort: api

0 comments on commit fc7e9c7

Please sign in to comment.