Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

add RabbitMQ chart - #184

Merged
lachie83 merged 4 commits into
helm:masterfrom
sameersbn:add-rabbitmq
Nov 22, 2016
Merged

lachie83 merged 4 commits into
helm:masterfrom
sameersbn:add-rabbitmq

Conversation

@sameersbn

Copy link
Copy Markdown
Contributor

No description provided.

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

Can a kubernetes member verify that this patch is reasonable to test? If so, please reply with "@k8s-bot ok to test" on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands will still work. Regular contributors should join the org to skip this step.

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@prydonius

Copy link
Copy Markdown
Member

@k8s-bot ok to test

@viglesiasce

Copy link
Copy Markdown
Contributor

Got connection refused when trying to connect. In the logs:

=ERROR REPORT==== 3-Nov-2016::20:59:00 ===
Mnesia('rabbit@fashionable-sn-rabbitmq-1018759968-y6avs'): ** ERROR ** (core dumped to file: "/opt/bitnami/rabbitmq/MnesiaCore.rabbit@fashionable-sn-rabbitmq-1018759968-y6avs_1478_206740_20654")
 ** FATAL ** {error,{"Cannot open dets table",schema,
                     [{file,"/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit/schema.DAT"},
                      {keypos,2},
                      {repair,true},
                      {type,set}],
                     {file_error,"/opt/bitnami/rabbitmq/var/lib/rabbitmq/mnesia/rabbit/schema.DAT",
                                 enoent}}}

Comment thread stable/rabbitmq/templates/NOTES.txt Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These credentials are also for connecting with RabbitMQ as well as just the manager. Can you make this clearer in these notes?

@viglesiasce this might be why you're unable to connect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prydonius @viglesiasce cleaned up the NOTE.txt output

Comment thread stable/rabbitmq/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a randomly generated password?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, additionally the erlang cookie is also randomly generated when not specified by the user.

@gtaylor

gtaylor commented Nov 5, 2016 •

Copy link
Copy Markdown
Collaborator

This may be worth more discussion at KubeCon, but I'm hesitant to run non-official images for critical stuff like RabbitMQ. It's clear that the Bitnami image has a lot more configurability out-of-the-box than the official image, but I'm not sure it's appropriate as a global, potentially Kubernetes-wide default. To re-iterate some previous points/concerns from my memcached PR:

  • As high quality as the Bitnami charts are, they are under much less scrutiny than the official images. They are also an order of magnitude less commonly used:

image
image

  • It is not clear who has the keys to these image's build infrastructure and sources.
  • In the event that Bitnami were unable to continue maintaining these images, it'd leave someone picking up maintainership or moving everyone to official.
  • It's not evident if or when tags are rebuilt in response to CVEs like the official images.

The last thing I want to do is sound unappreciative of the excellent work that the Bitnami folks are doing, but I don't feel like we should deviate from the official images by default unless there is a super compelling reason (major flaws or usability issues). My understanding of kubernetes/charts is to provide sensible defaults that are safe and acceptable as a starting point. Our eventual hordes of users will be more or less pulling and running arbitrary binaries, trusting us to do our best to provide as safe an experience as possible.

With that said, I think the Bitnami charts repo is a great place to point people at for more configurable images! Also, I'd be fully in support of renaming this chart to something like rabbitmq-clustered or rabbitmq-advanced or even rabbitmq-bitnami, leaving the straight rabbitmq chart name for the official setup. That makes the less standard setup opt-in rather than required for everything. We'd just need to be careful about depending on it when unnecessary.

I can file this as a separate issue or toss it somewhere else if there is a better place. Apologies for crashing the review with higher-level discussion. I hope this doesn't come across as negative!

@viglesiasce

Copy link
Copy Markdown
Contributor

I am not seeing the error I had previously but I cant get RabbitMQ to stay up for longer than a minute or 2. Looks like its crashing.

@sameersbn

Copy link
Copy Markdown
Contributor Author

@viglesiasce could you try increasing the initialDelaySeconds of the livenessProbe. Maybe the pod is taking longer than 30 secs (default) to start up. If that's the case, then I'll raise the value in the chart by default. If it does not help, could you share the output of kubectl log and kubectl describe pod of the rabbitmq pod?

@prydonius

Copy link
Copy Markdown
Member

@gtaylor sorry we missed you at KubeCon. Thanks for the detailed thoughts, @sameersbn and I are very open to discussing this and can hopefully address some of your concerns. In the interest of not conflicting with the review, would you be okay to move this discussion to a separate issue or follow-up PR?

@gtaylor

gtaylor commented Nov 16, 2016

Copy link
Copy Markdown
Collaborator

@prydonius Opened #220

@viglesiasce

Copy link
Copy Markdown
Contributor

This is working for me now. Not sure what was going on before. I was able to queue and get messages without issues based off the NOTES instructions.

@viglesiasce viglesiasce added UX reviewed code reviewed lgtm Indicates that a PR is ready to be merged. and removed awaiting review labels Nov 22, 2016
@lachie83
lachie83 merged commit 7aa9249 into helm:master Nov 22, 2016
@sameersbn
sameersbn deleted the add-rabbitmq branch December 15, 2016 07:46
intelfx pushed a commit to intelfx/charts that referenced this pull request Oct 19, 2018
* add RabbitMQ chart

* rabbitmq: when not specified, use a randomly generated password for rabbitmq user.

* rabbitmq: when not specified, generate a random erlang cookie string

* rabbitmq: cleanup NOTES.txt output
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

code reviewed lgtm Indicates that a PR is ready to be merged. UX reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants