In chapter 8, you learned how to create a cluster with seed nodes defined in the configuration. These are fixed IPs. Creating a cluster this way is practical, but it isn’t a setup you’ll use to go into production. This chapter starts with the same idea of fixed IPs to local deployment but uses the Akka Cluster Bootstrap module. You learn how to use this module to create an Akka cluster in Kubernetes using the Kubernetes API.
NOTE
The source code for this example is available at www.manning .com/books/akka-in-action-second-edition or https://github.com/franciscolopezsancho/akka-topics/tree/main/chapter13a. You can find the contents of any snippet or listing in the .scala file with the same name as the class, object, or trait.
val AkkaVersion = "2.6.20" val AkkaManagementVersion = "1.1.4" libraryDependencies ++= Seq( "com.lightbend.akka.management" %% "akka-management-cluster-bootstrap" % [CA]AkkaManagementVersion, "com.typesafe.akka" %% "akka-discovery" % AkkaVersion )