This repository was archived by the owner on Feb 19, 2025. It is now read-only.
Kubernetes working example#184
Open
claudiocleberson wants to merge 13 commits intorroemhild:masterfrom
Open
Conversation
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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,