GithubHelp home page GithubHelp logo

lightbend / akka-java-cluster-openshift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbrinegar/akka-java-cluster-openshift

2.0 2.0 2.0 380 KB

An Akka Java cluster OpenShift demo application

License: Apache License 2.0

Java 23.77% JavaScript 25.48% HTML 50.29% Dockerfile 0.46%

akka-java-cluster-openshift's Introduction

Akka-java-cluster-openshift

This is based on Hugh's Akka Cluster demo app with the nice visualizer. We've only removed a few config options so they go back to defaults, and updated Akka Mangement to 1.0, and then specify the app with an AkkaCluster resource instead of Namespace + Role + Rolebinding against default account + Deployment.

The AkkaCluster resource can be installed in any namespace. This application uses the Red Hat Universal Base Image(UBI), and the AdoptOpenJDK.

Enable Akka Management

The AkkaCluster Operator is for use with applications using Akka Management v1.x or newer, with both Bootstrap and HTTP modules enabled, and a management port defined to use discovery.

akka.management {
  cluster.bootstrap {
    contact-point-discovery {
      discovery-method = kubernetes-api
    }
  }
}

Install the AkkaCluster operator

To install the operator, use the Akka Cluster Operator from OperatorHub.io.

You can also clone the Operator repo and follow its README. It is pre-built so you're just loading Kubernetes resources in this step and using the bintray image.

https://github.com/lightbend/akka-cluster-operator

Build the app docker image (optional)

The public image is available but you can build your own image wtih:

mvn clean package docker:build

Manually publish updates to Bintray.

Openshift

kubectl apply -f ./kubernetes/akka-cluster.yml

make a Route to deployment/akka-cluster-demo port 8080 for the UI

Minikube

Install the AkkaCluster Operator from OperatorHub.io before deploying the demo application.

kubectl apply -f ./kubernetes/akka-cluster-minishift.yml

Expose the built in UI:

kubectl expose deployment/akka-cluster-demo --type=NodePort --port 8080

Go to the UI:

minikube service akka-cluster-demo

akka-java-cluster-openshift's People

Contributors

edwardcallahan avatar kwehden avatar mckeeh3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

javaigua bigg01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.