-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Improve Helm Chart #3638
base: main
Are you sure you want to change the base?
Improve Helm Chart #3638
Conversation
@danny-avila @iamNoah1 So in our chart for example we chose to place env config under librechat.configEnv and in the official chart its config.env. No big deal, but everyone that uses the other chart has to manually migrate his config to the new format. Should I decide based on official/unofficial, user count of the chart, or make some dual-solution that just takes both config variants (maybe with an additional deprecation warning)? |
I think this is pretty recent so whatever you choose shouldn’t be too disruptive. Maybe both just to be safe but I don’t think it’s totally necessary |
@hofq I don't have a strong opinion here. I would vote for easy solution, and a dual supporting structure seems too much for me. I would stick with what is there, unless there is a good reason to disrupt. |
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.
Wow, I made it through ^^ It took forever, sorry. But I think we can and should move on now :) Happy to help any further. @hofq what you think?!
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.5 |
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.
version: 0.1.5 | |
version: 0.1.0 |
Would suggest that we start with this version.
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.
The Chart is already at another version in our chart repo. We should keep the versioning at that so we break less instances.
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.
understood, makes sense
@@ -0,0 +1,4 @@ | |||
# Librechat RAG API Helm CHart |
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.
Not sure if we really need this readme file
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.
For Artifacthub its a nice to have, as it shows how to get started with the chart directly where you get it. https://artifacthub.io/packages/helm/librechat/librechat
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.
understood
helm/librechat/values.yaml
Outdated
# modelDisplayLabel: "OpenRouter" | ||
|
||
|
||
# # name of existing Yaml configmap, key must be librechat.yaml |
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.
# # name of existing Yaml configmap, key must be librechat.yaml | |
# name of existing Yaml configmap, key must be librechat.yaml |
helm/librechat/values.yaml
Outdated
fullnameOverride: "" | ||
|
||
librechat: | ||
# LibreChat allows Configuration in 2 Ways: Environment Variables and a Config file. For easier Deployment the needed values are predifined here but should be adjusted to your needs. |
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.
This should go into docs if not already present
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.
as above it should be documented both in docs and here
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.
agreed
helm/librechat/values.yaml
Outdated
|
||
|
||
|
||
# # For adding a custom config yaml-file you can set the contents in this var. See https://www.librechat.ai/docs/configuration/librechat_yaml/example |
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.
# # For adding a custom config yaml-file you can set the contents in this var. See https://www.librechat.ai/docs/configuration/librechat_yaml/example | |
# For adding a custom config yaml-file you can set the contents in this var. See https://www.librechat.ai/docs/configuration/librechat_yaml/example |
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
librechat: |
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.
Generally I am a bit confused why we have global.librechat and librechat?! Feels a bit redundant, can we merge them and have only one? Preferably only librechat on the root level.
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.
global is a directive defined by helm. If there are values that should be available everywhere you opt for the global directive. The Secret Names and API Key may also be used in the subchart
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.
Could we the librechat stuff from the root level then also to the global.librechat?
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.
hmm don't know if i'd like that. would be a bid of for moving every var in global just for 2 secret names that have to be declared here. maybe we could use yaml anchors and move the vars into the normal librechat block?
Thanks @iamNoah1 :) I will look into it if i find time to rebase that whole pr. There where some Changes to our chart repo in the past which also should be included here. Additionally maybe putting renovate on the table for that PR would also be nice |
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.
Just some notes, there are some changes already done in https://github.com/bat-bs/helm-charts which i have to adapt.
Thanks for the Review :)
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.5 |
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.
The Chart is already at another version in our chart repo. We should keep the versioning at that so we break less instances.
@@ -0,0 +1,4 @@ | |||
# Librechat RAG API Helm CHart |
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.
For Artifacthub its a nice to have, as it shows how to get started with the chart directly where you get it. https://artifacthub.io/packages/helm/librechat/librechat
enabled: true | ||
# nameOverride: vectordb | ||
image: | ||
registry: ghcr.io |
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.
I don't get this comment sorry
helm/librechat/values.yaml
Outdated
librechat: | ||
# existing Secret for all envs/ only Passwords. Can be locally generated with: kubectl create secret generic librechat-secret-envs --from-env-file=.env.example --dry-run=client -o yaml > secret-envs.yaml | ||
## For better maintainabillity, you can put all vars directly in the config Section and only overwrite Secrets with this if nessesary. | ||
# Required Values: |
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.
Additionally, yeah. But setting up an app with a helm chart should be possible without looking in the docs.
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
librechat: |
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.
global is a directive defined by helm. If there are values that should be available everywhere you opt for the global directive. The Secret Names and API Key may also be used in the subchart
helm/librechat/values.yaml
Outdated
fullnameOverride: "" | ||
|
||
librechat: | ||
# LibreChat allows Configuration in 2 Ways: Environment Variables and a Config file. For easier Deployment the needed values are predifined here but should be adjusted to your needs. |
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.
as above it should be documented both in docs and here
Hi Sorry for my Late Comment and Changes :/ I'm no longer employed with Blue Atlas as the Company will not persist to exist. However i will assist and move the Migration of our Chart forward in my free time. I added most of your suggested changes @iamNoah1 bumped our base chart and added error handling. Hope you will find time to have a look again :) |
Pull Request Template
Summary
For now, it's a draft to document my progress.
CC: @danny-avila, @iamNoah1
Done
Todo
Change Type
Please delete any irrelevant options.
Testing
Please describe your test process and include instructions so that we can reproduce your test. If there are any important variables for your testing configuration, list them here.
Test Configuration:
Checklist
Please delete any irrelevant options.