Skip to content

Commit

Permalink
feat: addon support for chatgpt-retrieval-plugin milvus qdrant weavia…
Browse files Browse the repository at this point in the history
…te (#2385)
  • Loading branch information
nayutah authored Apr 3, 2023
1 parent 791d91b commit 54ec867
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 20 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ bump-chart-ver: \
bump-single-chart-ver.milvus \
bump-single-chart-ver.qdrant \
bump-single-chart-ver.qdrant-cluster \
bump-single-chart-ver.weaviate \
bump-single-chart-ver.weaviate-cluster \
bump-single-chart-ver.chatgpt-retrieval-plugin
bump-chart-ver: ## Bump helm chart version.

Expand Down
39 changes: 39 additions & 0 deletions deploy/helm/templates/addons/chatgpt-retrieval-plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: extensions.kubeblocks.io/v1alpha1
kind: Addon
metadata:
name: chatgpt-retrieval-plugin
labels:
{{- include "kubeblocks.labels" . | nindent 4 }}
"kubeblocks.io/provider": apecloud
{{- if .Values.keepAddons }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
spec:
description: 'Deploys a ChatGPT Retrieval Plugin application in a cluster.
ChatGPT Retrieval Plugin is an application for personalizing your ChatGPT dialogue through your private data.'
type: Helm

helm:
chartLocationURL: https://jihulab.com/api/v4/projects/85949/packages/helm/stable/charts/chatgpt-retrieval-plugin-{{ default .Chart.Version .Values.versionOverride }}.tgz
valuesMapping:
valueMap:
replicaCount: replicaCount

jsonMap:
tolerations: tolerations

resources:
cpu:
requests: resources.requests.cpu
limits: resources.limits.cpu
memory:
requests: resources.requests.memory
limits: resources.limits.memory

defaultInstallValues:
- replicas: 1

installable:
autoInstall: false

24 changes: 24 additions & 0 deletions deploy/helm/templates/addons/milvus-addon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: extensions.kubeblocks.io/v1alpha1
kind: Addon
metadata:
name: milvus
labels:
{{- include "kubeblocks.labels" . | nindent 4 }}
"kubeblocks.io/provider": community
{{- if .Values.keepAddons }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
spec:
description: 'Milvus is an open source (Apache-2.0 licensed) vector database built to power embedding similarity search and AI applications.'

type: Helm

helm:
chartLocationURL: https://jihulab.com/api/v4/projects/85949/packages/helm/stable/charts/milvus-{{ default .Chart.Version .Values.versionOverride }}.tgz

installable:
autoInstall: false

defaultInstallValues:
- enabled: true
24 changes: 24 additions & 0 deletions deploy/helm/templates/addons/qdrant-addon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: extensions.kubeblocks.io/v1alpha1
kind: Addon
metadata:
name: qdrant
labels:
{{- include "kubeblocks.labels" . | nindent 4 }}
"kubeblocks.io/provider": community
{{- if .Values.keepAddons }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
spec:
description: 'Qdrant is an open source (Apache-2.0 licensed), vector similarity search engine and vector database.'

type: Helm

helm:
chartLocationURL: https://jihulab.com/api/v4/projects/85949/packages/helm/stable/charts/qdrant-{{ default .Chart.Version .Values.versionOverride }}.tgz

installable:
autoInstall: false

defaultInstallValues:
- enabled: true
24 changes: 24 additions & 0 deletions deploy/helm/templates/addons/weaviate-addon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: extensions.kubeblocks.io/v1alpha1
kind: Addon
metadata:
name: weaviate
labels:
{{- include "kubeblocks.labels" . | nindent 4 }}
"kubeblocks.io/provider": community
{{- if .Values.keepAddons }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
spec:
description: 'Weaviate is an open-source (BSD-3.0 licensed) vector database. It allows you to store data objects and vector embeddings from your favorite ML-models, and scale seamlessly into billions of data objects.'

type: Helm

helm:
chartLocationURL: https://jihulab.com/api/v4/projects/85949/packages/helm/stable/charts/weaviate-{{ default .Chart.Version .Values.versionOverride }}.tgz

installable:
autoInstall: false

defaultInstallValues:
- enabled: true
2 changes: 0 additions & 2 deletions deploy/weaviate/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,3 @@ spec:
value: "7000"
- name: CLUSTER_DATA_BIND_PORT
value: "7001"
- name: CLUSTER_JOIN
value: weaviate-headless.default.svc.cluster.local
18 changes: 0 additions & 18 deletions deploy/weaviate/templates/headlessService.yaml

This file was deleted.

0 comments on commit 54ec867

Please sign in to comment.