Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Some other small changes to:
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,