Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bugthesystem/peximet

Akka cluster sample on Kubernetes
https://github.com/bugthesystem/peximet

akka akka-cluster kubernetes scala

Last synced: 27 days ago
JSON representation

Akka cluster sample on Kubernetes

Awesome Lists containing this project

README

        

# Peximet
Akka cluster sample on Kubernetes

## Create Docker Image
:warning: Kubernetes configurations should be updated accordingly!

```sh
#Build
sbt assembly

#build image
docker build -t {username}/peximet .

docker push {username}/peximet

```

## Installation
```sh
# To deploy the seed nodes:
kubectl apply -f kubernetes/peximet-seed.yaml
# To deploy the worker nodes:
kubectl apply -f kubernetes/peximet-workers.yaml

#Option 2: to deploy everything
kubectl apply -f kubernetes/
```

## Usage
```sh
# Scale seed nodes:
kubectl scale statefulset peximet-seed --replicas=5

#Scale worker nodes:
kubectl scale deployment peximet-workers --replicas=7

#See logs:
kubectl logs -f peximet-seed-4
```

## TODO
- ~~Create fatjar using sbt-assembly~~
- Add tests
- ~~Implement example actor model scenario~~