-
Notifications
You must be signed in to change notification settings - Fork 66
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
allow configuring the mongodb connection using environment variables … #279
allow configuring the mongodb connection using environment variables … #279
Conversation
64750cb
to
31e7b27
Compare
So, if I see it correctly, in order to use this, one would for example create a configMap
A disadvantage of this approach would be that the overall configuration when looking at the deployed resources would be more complicated. The Instead of using This could then be included like this:
(The And coming back to the disadvantage above, in this particular case of overriding the MongoDB config, one could also set |
9a0201a
to
535baa6
Compare
charts/hono/templates/hono-adapter-amqp/hono-adapter-amqp-vertx-deployment.yaml
Show resolved
Hide resolved
I am not sure if I understand the purpose of supporting this. @BobClaerhout can you maybe explain which advantage you see in configuring the Mongo DB connection in a ConfigMap as compared to a dedicated yaml file that you specify when deploying the chart via helm? |
We are currently using ArgoCD to deploy our applications to different clusters. Currently, our configuration is scattered all over the place because every helm deploy (we have about 20) has it's own configuration. For us, it would be helpful to have the ability to group all configuration in one seperate helm chart. This seperate helm chart, create the configuration (configmaps and secrets) for all other deploys resulting in using the default deploy as close as possible. |
So, my understanding is that you want to deploy Hono to 20 different kubernetes clusters using configuration that is (potentially) specific to the particular target environment, right?
Not sure if I can follow. What do you mean with all configuration? The 20 specific sets of configuration properties for the different target environments? And by one separate helm chart you are referring to a helm chart that you have created yourself? |
No, we have around 20 helm charts deployed to 1 cluster. These 20 helm deploys all have there separate configurations. And it is the configuration of those 20 helm charts we would like to group in one addition helm deploy with the configuration for all of them.
Yes, a new helm chart we've created ourselves. Since most of the environments will use similar setups (but different passwords, endpoints, ...) we should be able to only configure one helm chart (using a values file per environment) compared to having a values files for each helm deploy within an environment (which would result in a factor 20 more values files) |
d4b4df4
to
3834180
Compare
With the changes in this PR, there would only be the possibility to override/set config options that can be set via env variables in the main container of the Hono components. So, when there are differences in other part of the configuration of your environments (requiring values.yaml changes), this approach wouldn't work. Is it, that the other helm charts you are deploying use a similar mechanism of being configured via values taken from configmaps? |
charts/hono/values.yaml
Outdated
@@ -284,6 +284,9 @@ jaegerBackendExample: | |||
# secretName: "other-stuff" | |||
# mountPath: "/etc/other" | |||
|
|||
# The configMap to get additional environment variabes from for this deploy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: variabes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
3834180
to
ab8506e
Compare
…in a configmap Signed-off-by: Bob Claerhout <claerhout.bob@gmail.com>
ab8506e
to
72f846a
Compare
Yes, indeed. This requires all configuration properties you'd like to change to be configurable via env variables. I only see this as something additional (which allows me to do what I want currently).
Yes, you're right. And in fact we have something similar right now which pushes the configuration down from an umbrella chart. However, we have to do an |
No objections from my side, I also think it can be useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…in a configmap
Signed-off-by: Bob Claerhout claerhout.bob@gmail.com