Coder Social home page Coder Social logo

jgroups-kubernetes's Introduction

Kubernetes discovery protocol for JGroups

This repository contains Kubernetes Ping protocol for JGroups. The protocol can also be used in OpenShift v3 environment (which is also based on Kubernetes).

How to use it

In order to run JGroups discovery on Kubernetes one needs to add necessary dependencies to the project:

Maven dependencies
<dependency>
    <groupId>org.jgroups.kubernetes</groupId>
    <artifactId>kubernetes</artifactId>
    <version>${version.kubernetes-ping}</version>
</dependency>

It is highly recommended to use JGroups version which is transitively pulled by the Kubernetes discovery protocol (however it is not strictly required).

When deploying on OpenShift v3, the next step requires adding additional privileges using the following command:

Adding additional privileges
oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default -n $(oc project -q)

Thant’s it!

Additional configuration options

Environmental variables

The configuration is mainly done using environmental variables:

Variable name

Meaning

Default

Example

OPENSHIFT_KUBE_PING_NAMESPACE

Namespace used for discovery

<not set>

Cluster-1

OPENSHIFT_KUBE_PING_LABELS

Labels used for discovery

default

my-cluster

OPENSHIFT_KUBE_PING_SERVER_PORT

Port used for hosting internal server

8888

my-cluster

jgroups-kubernetes's People

Contributors

errantepiphany avatar slaskawi avatar douglaspalmer avatar rcernich avatar

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.