Skip to content
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

[HELM] Refactor Chart #1872

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
92198f7
Split templates
lakinduakash Oct 8, 2024
722b891
Fix file name
lakinduakash Oct 8, 2024
b1d4b3c
Move validations to validations.yaml
lakinduakash Oct 8, 2024
5d97a47
Add NOTES.txt
lakinduakash Oct 8, 2024
7d6c007
Update documentation in values.yaml ( for `helm-docs` )
lakinduakash Oct 8, 2024
41d1f2b
Split templates
lakinduakash Oct 8, 2024
d4d2ae6
Fix file name
lakinduakash Oct 8, 2024
80fc6a0
Move validations to validations.yaml
lakinduakash Oct 8, 2024
d90ddbf
Add NOTES.txt
lakinduakash Oct 8, 2024
dc34c1d
Update documentation in values.yaml ( for `helm-docs` )
lakinduakash Oct 8, 2024
602f27e
Merge branch 'refs/heads/main' into lakindu/helm
lakinduakash Oct 25, 2024
2af1bc6
Merge remote-tracking branch 'origin/lakindu/helm' into lakindu/helm
lakinduakash Oct 25, 2024
801e907
Add agents related templates and values
lakinduakash Oct 25, 2024
0c434c3
Add missing EOF
lakinduakash Oct 25, 2024
8c552e5
Add agents-pvc.yaml
lakinduakash Oct 25, 2024
cc15e61
Add h2ogpt-pvc.yaml
lakinduakash Oct 25, 2024
cd6c173
Separate PVC into files and remove autoscaling
lakinduakash Oct 25, 2024
1661737
Remove stack, vllm, tgi, and lmdeploy related checks for agents
lakinduakash Oct 25, 2024
6690942
Update secret configs
lakinduakash Oct 25, 2024
ba0434b
Add conditions for agent and openAi ports
lakinduakash Oct 25, 2024
86f060b
Remove stack from h2ogpt
lakinduakash Oct 25, 2024
a14ed1c
Add HPA for agents
lakinduakash Oct 25, 2024
db1cfce
Fix stack removal
lakinduakash Oct 25, 2024
95573cd
Add default resource limits
lakinduakash Oct 25, 2024
661cf3c
Add README.md generated from helm-docs
lakinduakash Oct 25, 2024
1b75c9d
Update Chart version
lakinduakash Oct 25, 2024
0f52c7b
Update secrets
lakinduakash Oct 28, 2024
9af9f2d
Remove global OpenAI, replicate and openAIAzure
lakinduakash Oct 28, 2024
78b2e72
Update helm-doc
lakinduakash Oct 28, 2024
f5b79da
Fix agents volumes
lakinduakash Oct 28, 2024
0086360
Remove lmdeploy
lakinduakash Oct 30, 2024
eccb0c2
Remove tgi
lakinduakash Oct 30, 2024
86fae3c
Change overrideConfig passing method
lakinduakash Nov 5, 2024
9818a04
Fix boolean values quote issue
lakinduakash Nov 5, 2024
72c5859
Add new line
lakinduakash Nov 6, 2024
36ca38e
Rename agents to agent
lakinduakash Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions helm/h2ogpt-chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Thank you for installing {{ .Chart.Name }}.

Your release is named {{ .Release.Name }}.

To learn more about the release, try:

$ helm status {{ .Release.Name }}
$ helm get all {{ .Release.Name }}
25 changes: 25 additions & 0 deletions helm/h2ogpt-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,28 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Configs for agents server
*/}}

{{- define "agents.overrideConfig" -}}
agent_server: True
agent_port: "5004"
{{- end }}

{{/*
Configs for agents with h2ogpt
*/}}

{{- define "h2ogpt.overrideConfig" -}}
{{- if .Values.h2ogpt.agents.enabled }}
agent_server: True
agent_port: "5004"
multiple_workers_gunicorn: True
agent_workers: {{ .Values.h2ogpt.agents.agent_workers}}
{{- else }}
agents_server: False
{{- end }}

{{- end }}
lakinduakash marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 16 additions & 0 deletions helm/h2ogpt-chart/templates/agents-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.agents.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "h2ogpt.fullname" . }}-agents-config
namespace: {{ include "h2ogpt.namespace" . | quote }}
labels:
{{- include "h2ogpt.labels" . | nindent 4 }}
data:
{{- range $key, $value := ( include "agents.overrideConfig" . | fromYaml ) }}
{{ printf "H2OGPT_%s" $key | upper }}: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.agents.overrideConfig }}
{{ printf "H2OGPT_%s" $key | upper }}: {{ $value | quote }}
{{- end }}
{{- end }}
Loading
Loading