-
Notifications
You must be signed in to change notification settings - Fork 376
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
feat: added helm chart #4065
feat: added helm chart #4065
Conversation
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.
Hi @Arvind644, thanks for the PR! Could we make the Elasticsearch deployment optional? I would like to toggle the Elasticsearch deployment based on a value of the Helm template.
k8s/helm chart/argilla/templates/argilla-server-deployment.yaml
Outdated
Show resolved
Hide resolved
@gabrielmbmb Does I have to make optional deployment for all of these - |
@gabrielmbmb I have done all the changes, please review my PR. |
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've added a few suggestions from having deployed Argilla recently (I'm not part of Argilla team)
image: argilla/argilla-server:latest | ||
env: | ||
- name: {{ .Values.argilladeployment.name }} | ||
value: "http://elasticsearch:9200" |
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 also be Values.argilladeployment.elasticurl
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: argilla-server | ||
image: argilla/argilla-server:latest | ||
env: | ||
- name: {{ .Values.argilladeployment.name }} |
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 env name is required by Argilla and wouln't change between deployments. Leaving it as ARGILLA_ELASTICSEARCH
should suffice.
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.
{{- end }} | ||
containers: | ||
- name: argilla-server | ||
image: argilla/argilla-server:latest |
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.
Suggestion: swap latest
for something like Values.imageTag
in case users want to pin the image version (e.g., to 1.16 or something)
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.
value: "http://elasticsearch:9200" | ||
ports: | ||
- containerPort: 6900 | ||
resources: |
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.
Suggestions: resources often vary among deployments, and so making these into Values
values is probably a good practice
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.
https://github.com/bikash119/argilla/blob/70059f21bfd977ee726978ba74f44a4d3d026767/examples/deployments/k8s/argilla-chart/templates/deployment.yaml#L61-L62
https://github.com/bikash119/argilla/blob/70059f21bfd977ee726978ba74f44a4d3d026767/examples/deployments/k8s/argilla-chart/values.yaml#L6-L10
@@ -0,0 +1,18 @@ | |||
apiVersion: autoscaling/v2 |
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.
Suggestion: wrap HPAs in something like {{- if .Values.autoscaling.enabled }}
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.
@@ -0,0 +1,38 @@ | |||
apiVersion: apps/v1 |
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.
Suggestion: I would consider adding a PVC for the Argilla deployment so that workspaces/users persist beyond restarts/redeployments and mount it to ARGILLA_HOME_PATH.
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.
https://github.com/bikash119/argilla/blob/70059f21bfd977ee726978ba74f44a4d3d026767/examples/deployments/k8s/argilla-chart/templates/deployment.yaml#L23-L28
https://github.com/bikash119/argilla/blob/70059f21bfd977ee726978ba74f44a4d3d026767/examples/deployments/k8s/argilla-chart/templates/deployment.yaml#L56-L59
https://github.com/bikash119/argilla/blob/70059f21bfd977ee726978ba74f44a4d3d026767/examples/deployments/k8s/argilla-chart/values.yaml#L15-L20
Thanks a lot for your help @jakemiller649 and @Arvind644 💪🏽 |
@Arvind644, are you able to continue work on this or can @gabrielmbmb, further fine-tune the contribution? |
As per some suggestions of Robert Pack:
|
|
closing because of #5512 . Thanks @bikash119 ! |
No description provided.