-
Notifications
You must be signed in to change notification settings - Fork 26
Support for apiserver.conf via Helm #1
Comments
@Shaked can I assume you mean from security perspective, i.e. fixed user/pass list in the If this is the case, I would suggest to have the entire section stored in Azure KeyVault (json encode it, or with any other string serialization function). Then when you spin the machine just add it to the base |
Yes exactly!
I usually use Azure KeyVault by using FlexVolume. So ideally I'd just save the entire content of (EDIT: if I choose to do it with FlexVolume, then I'd have to change the helm chart, which I rather not to) Thank you for helping! |
I have to admit, I was not aware of FlexVolume. What I had in mind was writing a setup script accessing the Azure KeyVault with REST API, which is a bit of work... :) After a brief review of FlexVolume, I have to say, it looks like the easiest way to go about it. That said, I can't think of a way to do that without changing the helm chart... I guess you'll have to fork the repository... Do you see other options? |
Yea it is the easiest I have found but I thought maybe you know another way I wasn't familiar with :) I don't mind forking it and submitting a PR. What I usually do is setting my volumes through
Then
Then What do you think? |
Yes! please submit a PR 😄 I think that we need to set an OS environment to tell the trains-apiserver to look for an additional folder with the EDIT: we should set So my thinking is that I would like to control whether FlexVolume is used, with an external variable outside of the helm This way, I'll end up with something like: How does that sound? |
I like the idea of controlling it via cli params, so that there won't be a need to create a new
|
Sounds about right to me 🥇 p.s. |
@bmartinn I'm on it! So currently I have this:
will result with:
One thing I'm not sure about is why even changing
And then in the
Then you either load your configuration the same as you do today, or everything comes from Azure KeyVault. Of course we can have both running together i.e If you ask me, I'm in favour of the above condition (either you load config from Azure KeyVault or you mount it same as today). What do you think? |
Thoughts? |
Thanks @Shaked ! |
Great! I was thinking that it would be easier to differentiate between the template and the values. Ideally I would have put FlexVolume there as well, but it over complicates things. |
Makes sense. |
Hello,
I have installed trains-server with Helm.
I was wondering, what would be the best practice to set
/opt/trains/config/apiserver.conf
?Ideally, in most of my apps I'd just mount it as a volume either as a
ConfigMap
or if from cloud then I'd use Azure KeyVault (or any of the equivalent).I'm not sure how to do it with trains-server though. Any suggestions?
Thank you,
Shaked
The text was updated successfully, but these errors were encountered: