Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes working example #184

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

claudiocleberson
Copy link

Hi @rroemhild,

The working example I promised I only could finish today. There is a README.md with all I could put together.

I created a folder 'kubernetes' with all needed to deploy the working example. I was unable to build the image from the main Dockerfile duo to an error that I couldn't figure why. so I created another image based on the main rroemhild/docker-ejabberd and uploaded as ccpereira/ejabberd-k8s:0.0.1.

As request, a new Enviroment variable criated: EJABBERD_AUTO_JOIN_CLUSTER:true/false. if set to false, the image will behave as the original one.

I changed the script from the docker-compose-cluster example to an new one

  • 100_ejabberd_join_cluster.sh

Some other small changes to:

  • base_functions.sh
  • functions.sh
  • run.sh

The cluster is able to work on the k8s cluster, and join the nodes automatically. It works in the following way:

Any node that is not the first of the deployment, will search for other nodes to join the cluster.

I hope that will be useful, ping me if anything is not right, or in case of doubt.

regards,

@rroemhild
Copy link
Owner

Hi @claudiocleberson, sorry I had no time to look into this or even try it. Is it possible to integrate your changes into base, so that we do not need to images or duplicate code. What is the error you get with the main Dockerfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants