-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change -beta to -alpha * Fix some typo issues * Add sub charts and embedding-model * Add Redis/Postgres/Qdrant as sub-chart * Fix helm dependency issue
- Loading branch information
Showing
15 changed files
with
247 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
values-local.yaml | ||
charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dependencies: | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 20.2.1 | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 16.1.2 | ||
- name: qdrant | ||
repository: https://qdrant.github.io/qdrant-helm | ||
version: 1.12.2 | ||
digest: sha256:3b94766cdd43351699a96ec2bebc27656e34de13c49c7be279db63f750cde6ae | ||
generated: "2024-11-10T23:44:51.273569466+05:45" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{- if .Values.api.enabled -}} | ||
{{- if .Values.api.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{{- if .Values.embeddingModel.enabled }} | ||
|
||
# TODO: Add NODE SELECTOR | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "tc-chatbot-backend.fullname" . }}-embedding-model | ||
labels: | ||
component: embedding-model-deployment | ||
environment: {{ .Values.environment }} | ||
release: {{ .Release.Name }} | ||
# XXX: Add global lables? | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ template "tc-chatbot-backend.name" . }} | ||
release: {{ .Release.Name }} | ||
run: {{ .Release.Name }}-embedding-model | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ template "tc-chatbot-backend.name" . }} | ||
release: {{ .Release.Name }} | ||
run: {{ .Release.Name }}-embedding-model | ||
spec: | ||
containers: | ||
- name: {{ .Chart.Name }}-embedding-model | ||
image: "{{ .Values.embeddingModel.image.name }}:{{ .Values.embeddingModel.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
command: ["uvicorn", "app:app", "--host=0.0.0.0", "--port={{ .Values.embeddingModel.containerPort }}"] | ||
ports: | ||
- name: http | ||
containerPort: {{ .Values.embeddingModel.containerPort }} | ||
protocol: TCP | ||
# nodeSelector: TODO: | ||
# nvidia: ssd | ||
livenessProbe: # FIXME: Fix Liveness Probe | ||
httpGet: | ||
path: / # TODO | ||
port: {{ .Values.embeddingModel.containerPort }} | ||
initialDelaySeconds: 10180 # TODO:? | ||
periodSeconds: 5 # TODO:? | ||
resources: | ||
requests: | ||
cpu: {{ .Values.embeddingModel.resources.requests.cpu }} | ||
memory: {{ .Values.embeddingModel.resources.requests.memory }} | ||
limits: | ||
cpu: {{ .Values.embeddingModel.resources.limits.cpu }} | ||
memory: {{ .Values.embeddingModel.resources.limits.memory }} | ||
volumeMounts: | ||
- mountPath: "/opt/models" | ||
name: downloaded-models | ||
volumes: | ||
- name: downloaded-models | ||
persistentVolumeClaim: | ||
claimName: {{ template "tc-chatbot-backend.fullname" . }}-embedding-model-pvc | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.embeddingModel.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "tc-chatbot-backend.fullname" . }}-embedding-model-pvc | ||
labels: | ||
component: embedding-model-deployment | ||
environment: {{ .Values.environment }} | ||
release: {{ .Release.Name }} | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: {{ .Values.embeddingModel.persistence.storageClassName }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.embeddingModel.persistence.size }} | ||
|
||
{{- end }} |
18 changes: 9 additions & 9 deletions
18
helm/templates/redis/service.yaml → helm/templates/embedding_model/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{{- if .Values.redis.enabled -}} | ||
{{- if .Values.embeddingModel.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "tc-chatbot-backend.fullname" . }}-redis | ||
name: {{ template "tc-chatbot-backend.fullname" . }}-embedding-model-svc | ||
labels: | ||
app: {{ template "tc-chatbot-backend.name" . }} | ||
component: redis-service | ||
component: embedding-model-service | ||
environment: {{ .Values.environment }} | ||
release: {{ .Release.Name }} | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- protocol: TCP | ||
port: 6379 | ||
targetPort: 6379 | ||
nodePort: null | ||
selector: | ||
app: {{ template "tc-chatbot-backend.name" . }} | ||
release: {{ .Release.Name }} | ||
run: {{ .Release.Name }}-redis | ||
run: {{ .Release.Name }}-embedding-model | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: {{ .Values.embeddingModel.containerPort }} | ||
nodePort: null | ||
|
||
{{- end }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{- if .Values.streamlit.enabled -}} | ||
{{- if .Values.streamlit.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
|
Oops, something went wrong.