All Projects → saturnism → Akka Kubernetes Example

saturnism / Akka Kubernetes Example

Licence: apache-2.0

Programming Languages

java
68154 projects - #9 most used programming language

Introduction

This is an example code and configuration to deploy Akka in Kubernetes using Statefulset for Akka seed nodes, and Deployment for Akka worker nodes.

Special thanks to Johan and Ola for teaching me about Akka at JFokus 2017.

See Clustering Akka in Kubernetes article.

Prerequisite

You have a working Kubernetes 1.5 cluster. You can try Minikube, or Google Container Engine for multi-node deployment.

Installation

  1. Deploy the seed nodes: kubectl apply -f kubernetes/akka-seed.yaml
  2. Deploy the worker nodes: kubectll apply -f kubernetes/akka-workers.yaml

Or, deploy everything in one shot: `kubectl apply -f kubernetes/

Example Usage

  • Scale seed nodes: kubectl scale statefulset akka-seed --replicas=3
  • Scale worker nodes: kubectl scale deployment akka-worker --replicas=4
  • See logs: kubectl logs -f akka-seed-0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].