基于helm-dify 0.23.0 版本初始化
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
apiVersion: v2
|
||||
appVersion: 1.18.0
|
||||
description: A Helm Chart to run Weaviate with all dependencies
|
||||
home: https://github.com/weaviate/weaviate
|
||||
icon: https://raw.githubusercontent.com/weaviate/weaviate/19de0956c69b66c5552447e84d016f4fe29d12c9/docs/assets/weaviate-logo.png
|
||||
name: weaviate
|
||||
type: application
|
||||
version: 16.1.0
|
||||
@@ -0,0 +1,13 @@
|
||||
# Weaviate
|
||||
|
||||
[Weaviate](https://weaviate.io) is a decentralised vector search engine.
|
||||
|
||||
Please visit the [official docs](https://weaviate.io/developers/weaviate/installation/kubernetes)
|
||||
to learn how to install Weaviate on K8s using helm.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
helm repo add weaviate https://weaviate.github.io/weaviate-helm
|
||||
helm install my-weaviate weaviate/weaviate
|
||||
```
|
||||
@@ -0,0 +1,66 @@
|
||||
{{/* Generate the enabled modules config. This can be done a lot nicer once we drop Helm v2 support */}}
|
||||
{{ define "enabled_modules" }}
|
||||
{{- $modules := list -}}
|
||||
{{- if or (index .Values "modules" "text2vec-contextionary" "enabled") (index .Values "modules" "text2vec-contextionary" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "text2vec-contextionary" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "text2vec-transformers" "enabled") (index .Values "modules" "text2vec-transformers" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "text2vec-transformers" }}
|
||||
{{- else if or (index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "enabled") (index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "text2vec-transformers" }}
|
||||
{{- else if or (index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "enabled") (index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "text2vec-transformers" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "qna-transformers" "enabled") (index .Values "modules" "qna-transformers" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "qna-transformers" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "modules" "qna-openai" "enabled") -}}
|
||||
{{ $modules = append $modules "qna-openai" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "modules" "generative-openai" "enabled") -}}
|
||||
{{ $modules = append $modules "generative-openai" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "img2vec-neural" "enabled") (index .Values "modules" "img2vec-neural" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "img2vec-neural" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "ner-transformers" "enabled") (index .Values "modules" "ner-transformers" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "ner-transformers" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "sum-transformers" "enabled") (index .Values "modules" "sum-transformers" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "sum-transformers" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "text-spellcheck" "enabled") (index .Values "modules" "text-spellcheck" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "text-spellcheck" }}
|
||||
{{- end -}}
|
||||
{{- if or (index .Values "modules" "multi2vec-clip" "enabled") (index .Values "modules" "multi2vec-clip" "inferenceUrl") -}}
|
||||
{{ $modules = append $modules "multi2vec-clip" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "modules" "text2vec-openai" "enabled") -}}
|
||||
{{ $modules = append $modules "text2vec-openai" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "modules" "text2vec-huggingface" "enabled") -}}
|
||||
{{ $modules = append $modules "text2vec-huggingface" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "modules" "text2vec-cohere" "enabled") -}}
|
||||
{{ $modules = append $modules "text2vec-cohere" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "modules" "ref2vec-centroid" "enabled") -}}
|
||||
{{ $modules = append $modules "ref2vec-centroid" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "backups" "filesystem" "enabled") -}}
|
||||
{{ $modules = append $modules "backup-filesystem" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "backups" "s3" "enabled") -}}
|
||||
{{ $modules = append $modules "backup-s3" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "backups" "gcs" "enabled") -}}
|
||||
{{ $modules = append $modules "backup-gcs" }}
|
||||
{{- end -}}
|
||||
{{- if (index .Values "backups" "azure" "enabled") -}}
|
||||
{{ $modules = append $modules "backup-azure" }}
|
||||
{{- end -}}
|
||||
{{- if gt (len $modules) 0 -}}
|
||||
- name: ENABLE_MODULES
|
||||
value: {{ join "," $modules }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,22 @@
|
||||
{{ if and (index .Values "backups" "azure" "enabled") (index .Values "backups" "azure" "secrets") }}
|
||||
{{- if or (index .Values "backups" "azure" "secrets" "AZURE_STORAGE_ACCOUNT") (index .Values "backups" "azure" "secrets" "AZURE_STORAGE_KEY") (index .Values "backups" "azure" "secrets" "AZURE_STORAGE_CONNECTION_STRING") }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: backup-azure
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
type: Opaque
|
||||
data:
|
||||
{{- if index .Values "backups" "azure" "secrets" "AZURE_STORAGE_ACCOUNT" }}
|
||||
AZURE_STORAGE_ACCOUNT: {{ index .Values "backups" "azure" "secrets" "AZURE_STORAGE_ACCOUNT" | b64enc }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "azure" "secrets" "AZURE_STORAGE_KEY" }}
|
||||
AZURE_STORAGE_KEY: {{ index .Values "backups" "azure" "secrets" "AZURE_STORAGE_KEY" | b64enc }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "azure" "secrets" "AZURE_STORAGE_CONNECTION_STRING" }}
|
||||
AZURE_STORAGE_CONNECTION_STRING: {{ index .Values "backups" "azure" "secrets" "AZURE_STORAGE_CONNECTION_STRING" | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,56 @@
|
||||
{{ if index .Values "modules" "text2vec-contextionary" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: contextionary
|
||||
labels:
|
||||
name: contextionary
|
||||
app: contextionary
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "text2vec-contextionary" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: contextionary
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: contextionary
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
{{- if (index .Values "modules" "text2vec-contextionary" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "text2vec-contextionary" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: contextionary
|
||||
image: {{ index .Values "modules" "text2vec-contextionary" "registry" }}/{{ index .Values "modules" "text2vec-contextionary" "repo" }}:{{ index .Values "modules" "text2vec-contextionary" "tag" }}
|
||||
env:
|
||||
- name: OCCURRENCE_WEIGHT_LINEAR_FACTOR
|
||||
value: {{ index .Values "modules" "text2vec-contextionary" "envconfig" "occurrence_weight_linear_factor" | quote }}
|
||||
- name: EXTENSIONS_STORAGE_MODE
|
||||
value: {{ index .Values "modules" "text2vec-contextionary" "envconfig" "extensions_storage_mode" | quote }}
|
||||
- name: EXTENSIONS_STORAGE_ORIGIN
|
||||
value: http://{{ .Values.service.name }}.{{ .Release.Namespace }}.svc.cluster.local
|
||||
- name: NEIGHBOR_OCCURRENCE_IGNORE_PERCENTILE
|
||||
value: {{ index .Values "modules" "text2vec-contextionary" "envconfig" "neighbor_occurrence_ignore_percentile" | quote }}
|
||||
- name: ENABLE_COMPOUND_SPLITTING
|
||||
value: {{ index .Values "modules" "text2vec-contextionary" "envconfig" "enable_compound_splitting" | quote }}
|
||||
resources:
|
||||
{{ index .Values "modules" "text2vec-contextionary" "resources" | toYaml | indent 10 }}
|
||||
{{- with index .Values "modules" "text2vec-contextionary" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-contextionary" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-contextionary" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ if index .Values "modules" "text2vec-contextionary" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: contextionary
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: contextionary
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 9999
|
||||
targetPort: 9999
|
||||
{{ end }}
|
||||
@@ -0,0 +1,14 @@
|
||||
{{ if and (index .Values "backups" "gcs" "enabled") (index .Values "backups" "gcs" "secrets") }}
|
||||
{{- if index .Values "backups" "gcs" "secrets" "GOOGLE_APPLICATION_CREDENTIALS" }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: backup-gcs
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
type: Opaque
|
||||
data:
|
||||
GOOGLE_APPLICATION_CREDENTIALS: {{ index .Values "backups" "gcs" "secrets" "GOOGLE_APPLICATION_CREDENTIALS" | b64enc }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,67 @@
|
||||
{{ if index .Values "modules" "img2vec-neural" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "img2vec-neural" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "img2vec-neural" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "img2vec-neural" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "img2vec-neural" "registry" }}/{{ index .Values "modules" "img2vec-neural" "repo" }}:{{ index .Values "modules" "img2vec-neural" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "img2vec-neural" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{ if index .Values "modules" "img2vec-neural" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "img2vec-neural" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "img2vec-neural" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "img2vec-neural" "envconfig" "ld_library_path"}}
|
||||
{{ end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "img2vec-neural" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "img2vec-neural" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "img2vec-neural" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "img2vec-neural" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "img2vec-neural" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "img2vec-neural" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "img2vec-neural" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "img2vec-neural" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "img2vec-neural" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ if index .Values "modules" "img2vec-neural" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
@@ -0,0 +1,67 @@
|
||||
{{ if index .Values "modules" "multi2vec-clip" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "multi2vec-clip" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "multi2vec-clip" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "multi2vec-clip" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "multi2vec-clip" "registry" }}/{{ index .Values "modules" "multi2vec-clip" "repo" }}:{{ index .Values "modules" "multi2vec-clip" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "multi2vec-clip" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{ if index .Values "modules" "multi2vec-clip" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "multi2vec-clip" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "multi2vec-clip" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "multi2vec-clip" "envconfig" "ld_library_path"}}
|
||||
{{ end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "multi2vec-clip" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "multi2vec-clip" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "multi2vec-clip" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "multi2vec-clip" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "multi2vec-clip" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "multi2vec-clip" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "multi2vec-clip" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "multi2vec-clip" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "multi2vec-clip" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ if index .Values "modules" "multi2vec-clip" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
@@ -0,0 +1,67 @@
|
||||
{{ if index .Values "modules" "ner-transformers" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "ner-transformers" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "ner-transformers" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "ner-transformers" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "ner-transformers" "registry" }}/{{ index .Values "modules" "ner-transformers" "repo" }}:{{ index .Values "modules" "ner-transformers" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "ner-transformers" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{ if index .Values "modules" "ner-transformers" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "ner-transformers" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "ner-transformers" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "ner-transformers" "envconfig" "ld_library_path"}}
|
||||
{{ end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "ner-transformers" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "ner-transformers" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "ner-transformers" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "ner-transformers" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "ner-transformers" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "ner-transformers" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "ner-transformers" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "ner-transformers" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "ner-transformers" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ if index .Values "modules" "ner-transformers" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
@@ -0,0 +1,67 @@
|
||||
{{ if index .Values "modules" "qna-transformers" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "qna-transformers" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "qna-transformers" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "qna-transformers" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "qna-transformers" "registry" }}/{{ index .Values "modules" "qna-transformers" "repo" }}:{{ index .Values "modules" "qna-transformers" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "qna-transformers" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{ if index .Values "modules" "qna-transformers" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "qna-transformers" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "qna-transformers" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "qna-transformers" "envconfig" "ld_library_path"}}
|
||||
{{ end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "qna-transformers" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "qna-transformers" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "qna-transformers" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "qna-transformers" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "qna-transformers" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "qna-transformers" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "qna-transformers" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "qna-transformers" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "qna-transformers" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ if index .Values "modules" "qna-transformers" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
@@ -0,0 +1,19 @@
|
||||
{{ if and (index .Values "backups" "s3" "enabled") (index .Values "backups" "s3" "secrets") }}
|
||||
{{- if or (index .Values "backups" "s3" "secrets" "AWS_ACCESS_KEY_ID") (index .Values "backups" "s3" "secrets" "AWS_SECRET_ACCESS_KEY") }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: backup-s3
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
type: Opaque
|
||||
data:
|
||||
{{- if index .Values "backups" "s3" "secrets" "AWS_ACCESS_KEY_ID" }}
|
||||
AWS_ACCESS_KEY_ID: {{ index .Values "backups" "s3" "secrets" "AWS_ACCESS_KEY_ID" | b64enc }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "s3" "secrets" "AWS_SECRET_ACCESS_KEY" }}
|
||||
AWS_SECRET_ACCESS_KEY: {{ index .Values "backups" "s3" "secrets" "AWS_SECRET_ACCESS_KEY" | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,67 @@
|
||||
{{ if index .Values "modules" "sum-transformers" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "sum-transformers" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "sum-transformers" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "sum-transformers" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "sum-transformers" "registry" }}/{{ index .Values "modules" "sum-transformers" "repo" }}:{{ index .Values "modules" "sum-transformers" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "sum-transformers" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{ if index .Values "modules" "sum-transformers" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "sum-transformers" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "sum-transformers" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "sum-transformers" "envconfig" "ld_library_path"}}
|
||||
{{ end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "sum-transformers" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "sum-transformers" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "sum-transformers" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "sum-transformers" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "sum-transformers" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "sum-transformers" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "sum-transformers" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "sum-transformers" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "sum-transformers" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ if index .Values "modules" "sum-transformers" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
@@ -0,0 +1,56 @@
|
||||
{{ if index .Values "modules" "text-spellcheck" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "text-spellcheck" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "text-spellcheck" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "text-spellcheck" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "text-spellcheck" "registry" }}/{{ index .Values "modules" "text-spellcheck" "repo" }}:{{ index .Values "modules" "text-spellcheck" "tag" }}
|
||||
resources:
|
||||
{{ index .Values "modules" "text-spellcheck" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "text-spellcheck" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "text-spellcheck" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "text-spellcheck" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "text-spellcheck" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "text-spellcheck" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "text-spellcheck" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text-spellcheck" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text-spellcheck" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,18 @@
|
||||
{{ if index .Values "modules" "text-spellcheck" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
@@ -0,0 +1,207 @@
|
||||
{{ if index .Values "modules" "text2vec-transformers" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "text2vec-transformers" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "text2vec-transformers" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "text2vec-transformers" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "text2vec-transformers" "registry" }}/{{ index .Values "modules" "text2vec-transformers" "repo" }}:{{ index .Values "modules" "text2vec-transformers" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "text2vec-transformers" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{- if index .Values "modules" "text2vec-transformers" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "envconfig" "ld_library_path"}}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "text2vec-transformers" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
{{- if (index .Values "modules" "text2vec-transformers" "probeInitialDelaySeconds") }}
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "probeInitialDelaySeconds" }}
|
||||
{{- else }}
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "livenessProbe" "initialDelaySeconds" }}
|
||||
{{- end }}
|
||||
periodSeconds: {{ index .Values "modules" "text2vec-transformers" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "text2vec-transformers" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
{{- if (index .Values "modules" "text2vec-transformers" "probeInitialDelaySeconds") }}
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "probeInitialDelaySeconds" }}
|
||||
{{- else }}
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "readinessProbe" "initialDelaySeconds" }}
|
||||
{{- end }}
|
||||
periodSeconds: {{ index .Values "modules" "text2vec-transformers" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{ else }}
|
||||
{{- if index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "text2vec-transformers" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "text2vec-transformers" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "registry" }}/{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "repo" }}:{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{- if index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "envconfig" "ld_library_path"}}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- if index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "enabled" }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
labels:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
spec:
|
||||
replicas: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "replicas" }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
spec:
|
||||
{{- if (index .Values "modules" "text2vec-transformers" "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "modules" "text2vec-transformers" "serviceAccountName" }}
|
||||
{{- else if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ index .Values "serviceAccountName" }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
image: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "registry" }}/{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "repo" }}:{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "tag" }}
|
||||
env:
|
||||
- name: ENABLE_CUDA
|
||||
value: "{{ if index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "envconfig" "enable_cuda" }}1{{ else }}0{{ end }}"
|
||||
{{- if index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "envconfig" "enable_cuda" }}
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "envconfig" "nvidia_visible_devices"}}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "envconfig" "nvidia_driver_capabilities"}}
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "envconfig" "ld_library_path"}}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "resources" | toYaml | indent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "livenessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "livenessProbe" "periodSeconds" }}
|
||||
timeoutSeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "livenessProbe" "timeoutSeconds" }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "readinessProbe" "initialDelaySeconds" }}
|
||||
periodSeconds: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "readinessProbe" "periodSeconds" }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "nodeSelector" | default .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "affinity" | default .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "tolerations" | default .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,47 @@
|
||||
{{ if index .Values "modules" "text2vec-transformers" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ else }}
|
||||
{{ if index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
---
|
||||
{{ if index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "enabled" }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,23 @@
|
||||
{{ if not .Values.custom_config_map.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: weaviate-config
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
data:
|
||||
conf.yaml: |-
|
||||
---
|
||||
authentication:
|
||||
{{ toYaml .Values.authentication | nindent 6 | trim }}
|
||||
authorization:
|
||||
{{ toYaml .Values.authorization | nindent 6 | trim }}
|
||||
{{ if index .Values "modules" "text2vec-contextionary" "enabled" }}
|
||||
contextionary:
|
||||
url: {{ index .Values "modules" "text2vec-contextionary" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:9999
|
||||
{{ end }}
|
||||
query_defaults:
|
||||
{{ toYaml .Values.query_defaults | nindent 6 | trim }}
|
||||
debug: {{ .Values.debug }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.service.name }}-headless
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: weaviate
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: {{ .Values.env.CLUSTER_GOSSIP_BIND_PORT }}
|
||||
publishNotReadyAddresses: true
|
||||
@@ -0,0 +1,12 @@
|
||||
{{ if and (index .Values "modules" "text2vec-cohere" "enabled") (index .Values "modules" "text2vec-cohere" "apiKey") }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: weaviate-cohere
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
type: Opaque
|
||||
data:
|
||||
apiKey: {{ index .Values "modules" "text2vec-cohere" "apiKey" | b64enc }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,12 @@
|
||||
{{ if and (index .Values "modules" "text2vec-huggingface" "enabled") (index .Values "modules" "text2vec-huggingface" "apiKey") }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: weaviate-huggingface
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
type: Opaque
|
||||
data:
|
||||
apiKey: {{ index .Values "modules" "text2vec-huggingface" "apiKey" | b64enc }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,38 @@
|
||||
{{- $t2vOpenAI := and (index .Values "modules" "text2vec-openai" "enabled") (index .Values "modules" "text2vec-openai" "apiKey") -}}
|
||||
{{- $qnaOpenAI := and (index .Values "modules" "qna-openai" "enabled") (index .Values "modules" "qna-openai" "apiKey") }}
|
||||
{{- $generativeOpenAI := and (index .Values "modules" "generative-openai" "enabled") (index .Values "modules" "generative-openai" "apiKey") }}
|
||||
{{- $openAI := or ($t2vOpenAI) ($qnaOpenAI) ($generativeOpenAI) }}
|
||||
{{- if $openAI }}
|
||||
|
||||
{{- $apiKeys := list }}
|
||||
{{- if $t2vOpenAI }}
|
||||
{{- $apiKeys = append $apiKeys (index .Values "modules" "text2vec-openai" "apiKey") -}}
|
||||
{{- end }}
|
||||
{{- if $qnaOpenAI }}
|
||||
{{- $apiKeys = append $apiKeys (index .Values "modules" "qna-openai" "apiKey") -}}
|
||||
{{- end }}
|
||||
{{- if $generativeOpenAI }}
|
||||
{{- $apiKeys = append $apiKeys (index .Values "modules" "generative-openai" "apiKey") -}}
|
||||
{{- end }}
|
||||
|
||||
{{- if gt (len ($apiKeys | uniq)) 1 -}}
|
||||
{{- fail "OpenAI modules activated, but their keys differ. Use the same key on all activated OpenAI modules." }}
|
||||
{{- end }}
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: weaviate-openai
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
type: Opaque
|
||||
data:
|
||||
{{- if (index .Values "modules" "qna-openai" "apiKey") }}
|
||||
apiKey: {{ index .Values "modules" "qna-openai" "apiKey" | b64enc }}
|
||||
{{- else if (index .Values "modules" "generative-openai" "apiKey") }}
|
||||
apiKey: {{ index .Values "modules" "generative-openai" "apiKey" | b64enc }}
|
||||
{{- else }}
|
||||
apiKey: {{ index .Values "modules" "text2vec-openai" "apiKey" | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,32 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.service.name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
{{- with .Values.service.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
selector:
|
||||
app: weaviate
|
||||
ports:
|
||||
{{- range .Values.service.ports }}
|
||||
- {{ toYaml . | indent 6 | trim }}
|
||||
targetPort: 8080
|
||||
{{- end }}
|
||||
{{ if eq .Values.service.type "ClusterIP" -}}
|
||||
{{ if .Values.service.clusterIP }}
|
||||
clusterIP: {{ .Values.service.clusterIP }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if eq .Values.service.type "LoadBalancer" -}}
|
||||
{{- if gt (len .Values.service.loadBalancerSourceRanges) 0 }}
|
||||
loadBalancerSourceRanges:
|
||||
{{- range $_, $sourceRange := .Values.service.loadBalancerSourceRanges }}
|
||||
- {{ $sourceRange }}
|
||||
{{ end -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,345 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: weaviate
|
||||
labels:
|
||||
name: weaviate
|
||||
app: weaviate
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
replicas: {{ .Values.replicas }}
|
||||
serviceName: {{ .Values.service.name }}-headless
|
||||
selector:
|
||||
matchLabels:
|
||||
app: weaviate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: weaviate
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
{{- with .Values.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if (index .Values "serviceAccountName") }}
|
||||
serviceAccountName: {{ .Values.serviceAccountName }}
|
||||
{{- else if and (index .Values "backups" "s3" "enabled") (index .Values "backups" "s3" "serviceAccountName") }} # for backwards compatibility
|
||||
serviceAccountName: {{ .Values.backups.s3.serviceAccountName }}
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
|
||||
containers:
|
||||
- name: weaviate
|
||||
image: '{{ .Values.image.registry }}/{{ .Values.image.repo }}:{{ .Values.image.tag }}'
|
||||
imagePullPolicy: Always
|
||||
{{- with .Values.command }}
|
||||
command: {{ toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- with .Values.args }}
|
||||
args: {{ toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 10 }}
|
||||
env:
|
||||
{{- if or $.Values.env $.Values.envSecrets }}
|
||||
{{- range $key, $value := $.Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- range $key, $secret := $.Values.envSecrets }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $secret }}
|
||||
key: {{ $key | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- name: STANDALONE_MODE
|
||||
value: 'true'
|
||||
- name: PERSISTENCE_DATA_PATH
|
||||
value: '/var/lib/weaviate'
|
||||
- name: DEFAULT_VECTORIZER_MODULE
|
||||
value: {{ index .Values "modules" "default_vectorizer_module" | trim }}
|
||||
{{ template "enabled_modules" . }}
|
||||
{{- if index .Values "modules" "text2vec-transformers" "enabled" }}
|
||||
- name: TRANSFORMERS_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "text2vec-transformers" "inferenceUrl" }}
|
||||
- name: TRANSFORMERS_INFERENCE_API
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "inferenceUrl" }}
|
||||
{{- else }}
|
||||
{{- if index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "enabled" }}
|
||||
- name: TRANSFORMERS_PASSAGE_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "inferenceUrl" }}
|
||||
- name: TRANSFORMERS_PASSAGE_INFERENCE_API
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "passage" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "enabled" }}
|
||||
- name: TRANSFORMERS_QUERY_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "inferenceUrl" }}
|
||||
- name: TRANSFORMERS_QUERY_INFERENCE_API
|
||||
value: {{ index .Values "modules" "text2vec-transformers" "passageQueryServices" "query" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "multi2vec-clip" "enabled" }}
|
||||
- name: CLIP_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "multi2vec-clip" "inferenceUrl" }}
|
||||
- name: CLIP_INFERENCE_API
|
||||
value: {{ index .Values "modules" "multi2vec-clip" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "qna-transformers" "enabled" }}
|
||||
- name: QNA_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "qna-transformers" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "qna-transformers" "inferenceUrl" }}
|
||||
- name: QNA_INFERENCE_API
|
||||
value: {{ index .Values "modules" "qna-transformers" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "img2vec-neural" "enabled" }}
|
||||
- name: IMAGE_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "img2vec-neural" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "img2vec-neural" "inferenceUrl" }}
|
||||
- name: IMAGE_INFERENCE_API
|
||||
value: {{ index .Values "modules" "img2vec-neural" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "text-spellcheck" "enabled" }}
|
||||
- name: SPELLCHECK_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "text-spellcheck" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "text-spellcheck" "inferenceUrl" }}
|
||||
- name: SPELLCHECK_INFERENCE_API
|
||||
value: {{ index .Values "modules" "text-spellcheck" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "ner-transformers" "enabled" }}
|
||||
- name: NER_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "ner-transformers" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "ner-transformers" "inferenceUrl" }}
|
||||
- name: NER_INFERENCE_API
|
||||
value: {{ index .Values "modules" "ner-transformers" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{- if index .Values "modules" "sum-transformers" "enabled" }}
|
||||
- name: SUM_INFERENCE_API
|
||||
value: http://{{ index .Values "modules" "sum-transformers" "fullnameOverride" }}.{{ .Release.Namespace }}.svc.cluster.local:8080
|
||||
{{- else if index .Values "modules" "sum-transformers" "inferenceUrl" }}
|
||||
- name: SUM_INFERENCE_API
|
||||
value: {{ index .Values "modules" "sum-transformers" "inferenceUrl" }}
|
||||
{{- end }}
|
||||
{{ if or (and (index .Values "modules" "text2vec-openai" "enabled") (index .Values "modules" "text2vec-openai" "apiKey")) (and (index .Values "modules" "qna-openai" "enabled") (index .Values "modules" "qna-openai" "apiKey")) (and (index .Values "modules" "generative-openai" "enabled") (index .Values "modules" "generative-openai" "apiKey")) }}
|
||||
- name: OPENAI_APIKEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: weaviate-openai
|
||||
key: apiKey
|
||||
{{- end }}
|
||||
{{- if and (index .Values "modules" "text2vec-huggingface" "enabled") (index .Values "modules" "text2vec-huggingface" "apiKey") }}
|
||||
- name: HUGGINGFACE_APIKEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: weaviate-huggingface
|
||||
key: apiKey
|
||||
{{- end }}
|
||||
{{- if and (index .Values "modules" "text2vec-cohere" "enabled") (index .Values "modules" "text2vec-cohere" "apiKey") }}
|
||||
- name: COHERE_APIKEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: weaviate-cohere
|
||||
key: apiKey
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "filesystem" "enabled") (index .Values "backups" "filesystem" "envconfig") }}
|
||||
{{- range $key, $value := index .Values "backups" "filesystem" "envconfig" }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "s3" "enabled" }}
|
||||
{{- if index .Values "backups" "s3" "envconfig" }}
|
||||
{{- range $key, $value := index .Values "backups" "s3" "envconfig" }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "s3" "envSecrets" }}
|
||||
{{- range $key, $secret := $.Values.backups.s3.envSecrets }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $secret }}
|
||||
key: {{ $key | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "s3" "secrets") (index .Values "backups" "s3" "secrets" "AWS_ACCESS_KEY_ID") }}
|
||||
- name: AWS_ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backup-s3
|
||||
key: AWS_ACCESS_KEY_ID
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "s3" "secrets") (index .Values "backups" "s3" "secrets" "AWS_SECRET_ACCESS_KEY") }}
|
||||
- name: AWS_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backup-s3
|
||||
key: AWS_SECRET_ACCESS_KEY
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "gcs" "enabled" }}
|
||||
{{- if index .Values "backups" "gcs" "envconfig" }}
|
||||
{{- range $key, $value := index .Values "backups" "gcs" "envconfig" }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if or (index .Values "backups" "gcs" "secrets") (index .Values "backups" "gcs" "envSecrets") }}
|
||||
{{- if or (index .Values "backups" "gcs" "secrets" "GOOGLE_APPLICATION_CREDENTIALS") (index .Values "backups" "gcs" "envSecrets" "GOOGLE_APPLICATION_CREDENTIALS") }}
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: "/etc/gcp/credentials.json"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "azure" "enabled" }}
|
||||
{{- if index .Values "backups" "azure" "envconfig" }}
|
||||
{{- range $key, $value := index .Values "backups" "azure" "envconfig" }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if index .Values "backups" "azure" "envSecrets" }}
|
||||
{{- range $key, $secret := $.Values.backups.azure.envSecrets }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $secret }}
|
||||
key: {{ $key | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "azure" "secrets") (index .Values "backups" "azure" "secrets" "AZURE_STORAGE_ACCOUNT") }}
|
||||
- name: AZURE_STORAGE_ACCOUNT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backup-azure
|
||||
key: AZURE_STORAGE_ACCOUNT
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "azure" "secrets") (index .Values "backups" "azure" "secrets" "AZURE_STORAGE_KEY") }}
|
||||
- name: AZURE_STORAGE_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backup-azure
|
||||
key: AZURE_STORAGE_KEY
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "azure" "secrets") (index .Values "backups" "azure" "secrets" "AZURE_STORAGE_CONNECTION_STRING") }}
|
||||
- name: AZURE_STORAGE_CONNECTION_STRING
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: backup-azure
|
||||
key: AZURE_STORAGE_CONNECTION_STRING
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- name: CLUSTER_JOIN
|
||||
value: {{ .Values.service.name }}-headless.{{ .Release.Namespace }}.svc.cluster.local
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
{{- if .Values.env.PROMETHEUS_MONITORING_ENABLED }}
|
||||
- name: metrics
|
||||
containerPort: 2112
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: weaviate-config
|
||||
mountPath: /weaviate-config
|
||||
- name: weaviate-data
|
||||
mountPath: /var/lib/weaviate
|
||||
{{- if index .Values "backups" "gcs" "enabled" }}
|
||||
{{- if or (index .Values "backups" "gcs" "secrets") (index .Values "backups" "gcs" "envSecrets") }}
|
||||
{{- if or (index .Values "backups" "gcs" "secrets" "GOOGLE_APPLICATION_CREDENTIALS") (index .Values "backups" "gcs" "envSecrets" "GOOGLE_APPLICATION_CREDENTIALS") }}
|
||||
- name: gcs-service-account-credentials-volume
|
||||
mountPath: /etc/gcp
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.startupProbe.enabled }}
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /v1/.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
|
||||
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
||||
successThreshold: {{ .Values.startupProbe.successThreshold }}
|
||||
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
|
||||
{{- end }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /v1/.well-known/live
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
||||
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
||||
successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
||||
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /v1/.well-known/ready
|
||||
port: 8080
|
||||
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
||||
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
||||
successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
||||
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
||||
volumes:
|
||||
- name: weaviate-config
|
||||
configMap:
|
||||
{{ if .Values.custom_config_map.enabled }}name: {{ .Values.custom_config_map.name }} {{ else }}name: weaviate-config{{ end }}
|
||||
# - name: weaviate-persistence-data-vol
|
||||
# persistentVolumeClaim:
|
||||
# {{ if empty .Values.storage.fullnameOverride }}
|
||||
# claimName: weaviate-persistence-data
|
||||
# {{ else }}
|
||||
# claimName: {{ .Values.storage.fullnameOverride }}
|
||||
# {{ end }}
|
||||
{{- if index .Values "backups" "gcs" "enabled" }}
|
||||
{{- if and (index .Values "backups" "gcs" "secrets") (index .Values "backups" "gcs" "secrets" "GOOGLE_APPLICATION_CREDENTIALS") }}
|
||||
- name: gcs-service-account-credentials-volume
|
||||
secret:
|
||||
secretName: backup-gcs
|
||||
items:
|
||||
- key: GOOGLE_APPLICATION_CREDENTIALS
|
||||
path: credentials.json
|
||||
{{- end }}
|
||||
{{- if and (index .Values "backups" "gcs" "envSecrets") (index .Values "backups" "gcs" "envSecrets" "GOOGLE_APPLICATION_CREDENTIALS") }}
|
||||
- name: gcs-service-account-credentials-volume
|
||||
secret:
|
||||
secretName: {{ index .Values "backups" "gcs" "envSecrets" "GOOGLE_APPLICATION_CREDENTIALS" }}
|
||||
items:
|
||||
- key: GOOGLE_APPLICATION_CREDENTIALS
|
||||
path: credentials.json
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: weaviate-data
|
||||
labels:
|
||||
app.kubernetes.io/name: weaviate
|
||||
app.kubernetes.io/managed-by: helm
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
storageClassName: {{ .Values.storage.storageClassName }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.storage.size }}
|
||||
@@ -0,0 +1,947 @@
|
||||
image:
|
||||
# registry where weaviate image is stored
|
||||
registry: docker.io
|
||||
# Tag of weaviate image to deploy
|
||||
# Note: We strongly recommend you overwrite this value in your own values.yaml.
|
||||
# Otherwise a mere upgrade of the chart could lead to an unexpected upgrade
|
||||
# of weaviate. In accordance with Infra-as-code, you should pin this value
|
||||
# down and only change it if you explicitly want to upgrade the Weaviate
|
||||
# version.
|
||||
tag: 1.18.0
|
||||
repo: semitechnologies/weaviate
|
||||
|
||||
# overwrite command and args if you want to run specific startup scripts, for
|
||||
# example setting the nofile limit
|
||||
command: ["/bin/weaviate"]
|
||||
args:
|
||||
- '--host'
|
||||
- '0.0.0.0'
|
||||
- '--port'
|
||||
- '8080'
|
||||
- '--scheme'
|
||||
- 'http'
|
||||
- '--config-file'
|
||||
- '/weaviate-config/conf.yaml'
|
||||
- --read-timeout=60s
|
||||
- --write-timeout=60s
|
||||
|
||||
# below is an example that can be used to set an arbitrary nofile limit at
|
||||
# startup:
|
||||
#
|
||||
# command:
|
||||
# - "/bin/sh"
|
||||
# args:
|
||||
# - "-c"
|
||||
# - "ulimit -n 65535 && /bin/weaviate --host 0.0.0.0 --port 8080 --scheme http --config-file /weaviate-config/conf.yaml"
|
||||
|
||||
# Scale replicas of Weaviate. Note that as of v1.8.0 dynamic scaling is limited
|
||||
# to cases where no data is imported yet. Scaling down after importing data may
|
||||
# break usability. Full dynamic scalability will be added in a future release.
|
||||
replicas: 1
|
||||
resources: {}
|
||||
# requests:
|
||||
# cpu: '500m'
|
||||
# memory: '300Mi'
|
||||
# limits:
|
||||
# cpu: '1000m'
|
||||
# memory: '1Gi'
|
||||
|
||||
|
||||
# Add a service account ot the Weaviate pods if you need Weaviate to have permissions to
|
||||
# access kubernetes resources or cloud provider resources. For example for it to have
|
||||
# access to a backup up bucket, or if you want to restrict Weaviate pod in any way.
|
||||
# By default, use the default ServiceAccount
|
||||
serviceAccountName:
|
||||
|
||||
# The Persistent Volume Claim settings for Weaviate. If there's a
|
||||
# storage.fullnameOverride field set, then the default pvc will not be
|
||||
# created, instead the one defined in fullnameOverride will be used
|
||||
storage:
|
||||
size: 32Gi
|
||||
storageClassName: ""
|
||||
|
||||
# The service controls how weaviate is exposed to the outside world. If you
|
||||
# don't want a public load balancer, you can also choose 'ClusterIP' to make
|
||||
# weaviate only accessible within your cluster.
|
||||
service:
|
||||
name: weaviate
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
# Target port is going to be the same for every port
|
||||
type: LoadBalancer
|
||||
loadBalancerSourceRanges: []
|
||||
# optionally set cluster IP if you want to set a static IP
|
||||
clusterIP:
|
||||
annotations: {}
|
||||
|
||||
# Adjust liveness, readiness and startup probes configuration
|
||||
startupProbe:
|
||||
# For kubernetes versions prior to 1.18 startupProbe is not supported thus can be disabled.
|
||||
enabled: false
|
||||
|
||||
initialDelaySeconds: 300
|
||||
periodSeconds: 60
|
||||
failureThreshold: 50
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 3
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 900
|
||||
periodSeconds: 10
|
||||
failureThreshold: 30
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 3
|
||||
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 10
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 3
|
||||
|
||||
|
||||
terminationGracePeriodSeconds: 600
|
||||
|
||||
# Weaviate Config
|
||||
#
|
||||
# The following settings allow you to customize Weaviate to your needs, for
|
||||
# example set authentication and authorization options. See weaviate docs
|
||||
# (https://www.weaviate.io/developers/weaviate/) for all
|
||||
# configuration.
|
||||
authentication:
|
||||
anonymous_access:
|
||||
enabled: true
|
||||
authorization:
|
||||
admin_list:
|
||||
enabled: false
|
||||
query_defaults:
|
||||
limit: 100
|
||||
debug: false
|
||||
|
||||
|
||||
# Insert any custom environment variables or envSecrets by putting the exact name
|
||||
# and desired value into the settings below. Any env name passed will be automatically
|
||||
# set for the statefulSet.
|
||||
env:
|
||||
CLUSTER_GOSSIP_BIND_PORT: 7000
|
||||
CLUSTER_DATA_BIND_PORT: 7001
|
||||
# The aggressiveness of the Go Garbage Collector. 100 is the default value.
|
||||
GOGC: 100
|
||||
|
||||
# Expose metrics on port 2112 for Prometheus to scrape
|
||||
PROMETHEUS_MONITORING_ENABLED: false
|
||||
|
||||
# Set a MEM limit for the Weaviate Pod so it can help you both increase GC-related
|
||||
# performance as well as avoid GC-related out-of-memory (“OOM”) situations
|
||||
# GOMEMLIMIT: 6GiB
|
||||
|
||||
# Maximum results Weaviate can query with/without pagination
|
||||
# NOTE: Affects performance, do NOT set to a very high value.
|
||||
# The default is 100K
|
||||
QUERY_MAXIMUM_RESULTS: 100000
|
||||
|
||||
# whether to enable vector dimensions tracking metric
|
||||
TRACK_VECTOR_DIMENSIONS: false
|
||||
|
||||
# whether to re-index/-compute the vector dimensions metric (needed if upgrading from weaviate < v1.16.0)
|
||||
REINDEX_VECTOR_DIMENSIONS_AT_STARTUP: false
|
||||
|
||||
envSecrets:
|
||||
|
||||
|
||||
# Configure backup providers
|
||||
backups:
|
||||
# The backup-filesystem module enables creation of the DB backups in
|
||||
# the local filesystem
|
||||
filesystem:
|
||||
enabled: false
|
||||
envconfig:
|
||||
# Configure folder where backups should be saved
|
||||
BACKUP_FILESYSTEM_PATH: /tmp/backups
|
||||
|
||||
s3:
|
||||
enabled: false
|
||||
# If one is using AWS EKS and has already configured K8s Service Account
|
||||
# that holds the AWS credentials one can pass a name of that service account
|
||||
# here using this setting.
|
||||
# NOTE: the root `serviceAccountName` config has priority over this one, and
|
||||
# if the root one is set this one will NOT overwrite it. This one is here for
|
||||
# backwards compatibility.
|
||||
serviceAccountName:
|
||||
|
||||
envconfig:
|
||||
# Configure bucket where backups should be saved, this setting is mandatory
|
||||
BACKUP_S3_BUCKET: weaviate-backups
|
||||
|
||||
# Optional setting. Defaults to empty string.
|
||||
# Set this option if you want to save backups to a given location
|
||||
# inside the bucket
|
||||
# BACKUP_S3_PATH: path/inside/bucket
|
||||
|
||||
# Optional setting. Defaults to AWS S3 (s3.amazonaws.com).
|
||||
# Set this option if you have a MinIO storage configured in your environment
|
||||
# and want to use it instead of the AWS S3.
|
||||
# BACKUP_S3_ENDPOINT: custom.minio.endpoint.address
|
||||
|
||||
# Optional setting. Defaults to true.
|
||||
# Set this option if you don't want to use SSL.
|
||||
# BACKUP_S3_USE_SSL: true
|
||||
|
||||
# You can pass environment AWS settings here:
|
||||
# Define the region
|
||||
# AWS_REGION: eu-west-1
|
||||
|
||||
# For Weaviate to be able to create bucket objects it needs a user credentials to authenticate to AWS.
|
||||
# The User must have permissions to read/create/delete bucket objects.
|
||||
# You can pass the User credentials (access-key id and access-secret-key) in 2 ways:
|
||||
# 1. by setting the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY plain values in the `secrets` section below
|
||||
# this chart will create a kubernetes secret for you with these key-values pairs
|
||||
# 2. create Kubernetes secret/s with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY keys and their respective values
|
||||
# Set the Key and the secret where it is set in `envSecrets` section below
|
||||
secrets: {}
|
||||
# AWS_ACCESS_KEY_ID: access-key-id (plain text)
|
||||
# AWS_SECRET_ACCESS_KEY: secret-access-key (plain text)
|
||||
|
||||
# If one has already defined secrets with AWS credentials one can pass them using
|
||||
# this setting:
|
||||
envSecrets: {}
|
||||
# AWS_ACCESS_KEY_ID: name-of-the-k8s-secret-containing-the-key-id
|
||||
# AWS_SECRET_ACCESS_KEY: name-of-the-k8s-secret-containing-the-key
|
||||
|
||||
gcs:
|
||||
enabled: false
|
||||
envconfig:
|
||||
# Configure bucket where backups should be saved, this setting is mandatory
|
||||
BACKUP_GCS_BUCKET: weaviate-backups
|
||||
|
||||
# Optional setting. Defaults to empty string.
|
||||
# Set this option if you want to save backups to a given location
|
||||
# inside the bucket
|
||||
# BACKUP_GCS_PATH: path/inside/bucket
|
||||
|
||||
# You can pass environment Google settings here:
|
||||
# Define the project
|
||||
# GOOGLE_CLOUD_PROJECT: project-id
|
||||
|
||||
# For Weaviate to be able to create bucket objects it needs a ServiceAccount credentials to authenticate to GCP.
|
||||
# The ServiceAccount must have permissions to read/create/delete bucket objects.
|
||||
# You can pass the ServiceAccount credentials (as JSON) in 2 ways:
|
||||
# 1. by setting the GOOGLE_APPLICATION_CREDENTIALS json as plain text in the `secrets` section below
|
||||
# this chart will create a kubernetes secret for you with this key-values pairs
|
||||
# 2. create a Kubernetes secret with GOOGLE_APPLICATION_CREDENTIALS key and its respective value
|
||||
# Set the Key and the secret where it is set in `envSecrets` section below
|
||||
secrets: {}
|
||||
# GOOGLE_APPLICATION_CREDENTIALS: credentials-json-string
|
||||
|
||||
# If one has already defined a secret with GOOGLE_APPLICATION_CREDENTIALS one can pass them using
|
||||
# this setting:
|
||||
envSecrets: {}
|
||||
# GOOGLE_APPLICATION_CREDENTIALS: name-of-the-k8s-secret-containing-the-key
|
||||
|
||||
azure:
|
||||
enabled: false
|
||||
envconfig:
|
||||
# Configure container where backups should be saved, this setting is mandatory
|
||||
BACKUP_AZURE_CONTAINER: weaviate-backups
|
||||
|
||||
# Optional setting. Defaults to empty string.
|
||||
# Set this option if you want to save backups to a given location
|
||||
# inside the container
|
||||
# BACKUP_AZURE_PATH: path/inside/container
|
||||
|
||||
# For Weaviate to be able to create container objects it needs a user credentials to authenticate to Azure Storage.
|
||||
# The User must have permissions to read/create/delete container objects.
|
||||
# You can pass the User credentials (account-name id and account-key or connection-string) in 2 ways:
|
||||
# 1. by setting the AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY
|
||||
# or AZURE_STORAGE_CONNECTION_STRING plain values in the `secrets` section below
|
||||
# this chart will create a kubernetes secret for you with these key-values pairs
|
||||
# 2. create Kubernetes secret/s with AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY
|
||||
# or AZURE_STORAGE_CONNECTION_STRING and their respective values
|
||||
# Set the Key and the secret where it is set in `envSecrets` section below
|
||||
secrets: {}
|
||||
# AZURE_STORAGE_ACCOUNT: account-name (plain text)
|
||||
# AZURE_STORAGE_KEY: account-key (plain text)
|
||||
# AZURE_STORAGE_CONNECTION_STRING: connection-string (plain text)
|
||||
|
||||
# If one has already defined secrets with Azure Storage credentials one can pass them using
|
||||
# this setting:
|
||||
envSecrets: {}
|
||||
# AZURE_STORAGE_ACCOUNT: name-of-the-k8s-secret-containing-the-account-name
|
||||
# AZURE_STORAGE_KEY: name-of-the-k8s-secret-containing-account-key
|
||||
# AZURE_STORAGE_CONNECTION_STRING: name-of-the-k8s-secret-containing-connection-string
|
||||
|
||||
|
||||
# modules are extensions to Weaviate, they can be used to support various
|
||||
# ML-models, but also other features unrelated to model inference.
|
||||
# An inference/vectorizer module is not required, you can also run without any
|
||||
# modules and import your own vectors.
|
||||
modules:
|
||||
|
||||
# The text2vec-contextionary module uses a fastText-based vector-space to
|
||||
# derive vector embeddings for your objects. It is very efficient on CPUs,
|
||||
# but in some situations it cannot reach the same level of accuracy as
|
||||
# transformers-based models.
|
||||
text2vec-contextionary:
|
||||
# disable if you want to use transformers or import or own vectors
|
||||
enabled: false
|
||||
|
||||
# The configuration below is ignored if enabled==false
|
||||
fullnameOverride: contextionary
|
||||
tag: en0.16.0-v1.0.2
|
||||
repo: semitechnologies/contextionary
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
envconfig:
|
||||
occurrence_weight_linear_factor: 0.75
|
||||
neighbor_occurrence_ignore_percentile: 5
|
||||
enable_compound_splitting: false
|
||||
extensions_storage_mode: weaviate
|
||||
resources:
|
||||
requests:
|
||||
cpu: '500m'
|
||||
memory: '500Mi'
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# The text2vec-transformers modules uses neural networks, such as BERT,
|
||||
# DistilBERT, etc. to dynamically compute vector embeddings based on the
|
||||
# sentence's context. It is very slow on CPUs and should run with
|
||||
# CUDA-enabled GPUs for optimal performance.
|
||||
text2vec-transformers:
|
||||
|
||||
# enable if you want to use transformers instead of the
|
||||
# text2vec-contextionary module
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
# The configuration below is ignored if enabled==false
|
||||
|
||||
# replace with model of choice, see
|
||||
# https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-transformers
|
||||
# for all supported models or build your own container.
|
||||
tag: distilbert-base-uncased
|
||||
repo: semitechnologies/transformers-inference
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: transformers-inference
|
||||
# Deprecated setting use initialDelaySeconds instead in each probe instead
|
||||
# probeInitialDelaySeconds: 120
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
passageQueryServices:
|
||||
passage:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
|
||||
tag: facebook-dpr-ctx_encoder-single-nq-base
|
||||
repo: semitechnologies/transformers-inference
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: transformers-inference-passage
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
query:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
|
||||
tag: facebook-dpr-question_encoder-single-nq-base
|
||||
repo: semitechnologies/transformers-inference
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: transformers-inference-query
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# The text2vec-openai module uses OpenAI Embeddings API
|
||||
# to dynamically compute vector embeddings based on the
|
||||
# sentence's context.
|
||||
# More information about OpenAI Embeddings API can be found here:
|
||||
# https://beta.openai.com/docs/guides/embeddings/what-are-embeddings
|
||||
text2vec-openai:
|
||||
|
||||
# enable if you want to use OpenAI module
|
||||
enabled: false
|
||||
|
||||
# Set your OpenAI API Key to be passed to Weaviate pod as
|
||||
# an environment variable
|
||||
apiKey: ''
|
||||
|
||||
# The text2vec-huggingface module uses HuggingFace API
|
||||
# to dynamically compute vector embeddings based on the
|
||||
# sentence's context.
|
||||
# More information about HuggingFace API can be found here:
|
||||
# https://huggingface.co/docs/api-inference/detailed_parameters#feature-extraction-task
|
||||
text2vec-huggingface:
|
||||
|
||||
# enable if you want to use HuggingFace module
|
||||
enabled: false
|
||||
|
||||
# Set your HuggingFace API Key to be passed to Weaviate pod as
|
||||
# an environment variable
|
||||
apiKey: ''
|
||||
|
||||
# The text2vec-cohere module uses Cohere API
|
||||
# to dynamically compute vector embeddings based on the
|
||||
# sentence's context.
|
||||
# More information about Cohere API can be found here: https://docs.cohere.ai/
|
||||
text2vec-cohere:
|
||||
|
||||
# enable if you want to use Cohere module
|
||||
enabled: false
|
||||
|
||||
# Set your Cohere API Key to be passed to Weaviate pod as
|
||||
# an environment variable
|
||||
apiKey: ''
|
||||
|
||||
# The ref2vec-centroid module
|
||||
ref2vec-centroid:
|
||||
|
||||
# enable if you want to use Centroid module
|
||||
enabled: false
|
||||
|
||||
# The multi2vec-clip modules uses CLIP transformers to vectorize both images
|
||||
# and text in the same vector space. It is typically slow(er) on CPUs and should
|
||||
# run with CUDA-enabled GPUs for optimal performance.
|
||||
multi2vec-clip:
|
||||
|
||||
# enable if you want to use transformers instead of the
|
||||
# text2vec-contextionary module
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
|
||||
# The configuration below is ignored if enabled==false
|
||||
|
||||
# replace with model of choice, see
|
||||
# https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/multi2vec-clip
|
||||
# for all supported models or build your own container.
|
||||
tag: sentence-transformers-clip-ViT-B-32-multilingual-v1
|
||||
repo: semitechnologies/multi2vec-clip
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: clip-inference
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
annotations:
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
|
||||
# The qna-transformers module uses neural networks, such as BERT,
|
||||
# DistilBERT, to find an aswer in text to a given question
|
||||
qna-transformers:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
tag: bert-large-uncased-whole-word-masking-finetuned-squad-34d66b1
|
||||
repo: semitechnologies/qna-transformers
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: qna-transformers
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# The qna-openai module uses OpenAI Completions API
|
||||
# to dynamically answer given questions.
|
||||
# More information about OpenAI Completions API can be found here:
|
||||
# https://beta.openai.com/docs/api-reference/completions
|
||||
qna-openai:
|
||||
|
||||
# enable if you want to use OpenAI module
|
||||
enabled: false
|
||||
|
||||
# Set your OpenAI API Key to be passed to Weaviate pod as
|
||||
# an environment variable
|
||||
apiKey: ''
|
||||
|
||||
# The generative-openai module uses OpenAI Completions API
|
||||
# along with text-davinci-003 model to behave as ChatGPT.
|
||||
# More information about OpenAI Completions API can be found here:
|
||||
# https://beta.openai.com/docs/api-reference/completions
|
||||
generative-openai:
|
||||
|
||||
# enable if you want to use OpenAI module
|
||||
enabled: false
|
||||
|
||||
# Set your OpenAI API Key to be passed to Weaviate pod as
|
||||
# an environment variable
|
||||
apiKey: ''
|
||||
|
||||
# The img2vec-neural module uses neural networks, to generate
|
||||
# a vector representation of the image
|
||||
img2vec-neural:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
tag: resnet50
|
||||
repo: semitechnologies/img2vec-pytorch
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: img2vec-neural
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# The text-spellcheck module uses spellchecker library to check
|
||||
# misspellings in a given text
|
||||
text-spellcheck:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
tag: pyspellchecker-en
|
||||
repo: semitechnologies/text-spellcheck-model
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: text-spellcheck
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '400m'
|
||||
memory: '400Mi'
|
||||
limits:
|
||||
cpu: '500m'
|
||||
memory: '500Mi'
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# The ner-transformers module uses spellchecker library to check
|
||||
# misspellings in a given text
|
||||
ner-transformers:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
tag: dbmdz-bert-large-cased-finetuned-conll03-english-0.0.2
|
||||
repo: semitechnologies/ner-transformers
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: ner-transformers
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# The sum-transformers module makes result texts summarizations
|
||||
sum-transformers:
|
||||
enabled: false
|
||||
# You can set directly an inference URL of this module without deploying it with this release.
|
||||
# You can do so by setting a value for the `inferenceUrl` here AND by setting the `enable` to `false`
|
||||
inferenceUrl: {}
|
||||
tag: facebook-bart-large-cnn-1.0.0
|
||||
repo: semitechnologies/sum-transformers
|
||||
registry: docker.io
|
||||
replicas: 1
|
||||
fullnameOverride: sum-transformers
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 3
|
||||
envconfig:
|
||||
# enable for CUDA support. Your K8s cluster needs to be configured
|
||||
# accordingly and you need to explicitly set GPU requests & limits below
|
||||
enable_cuda: false
|
||||
|
||||
# only used when cuda is enabled
|
||||
nvidia_visible_devices: all
|
||||
nvidia_driver_capabilities: compute,utility
|
||||
|
||||
# only used when cuda is enabled
|
||||
ld_library_path: /usr/local/nvidia/lib64
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: '1000m'
|
||||
memory: '3000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
limits:
|
||||
cpu: '1000m'
|
||||
memory: '5000Mi'
|
||||
|
||||
# enable if running with CUDA support
|
||||
# nvidia.com/gpu: 1
|
||||
|
||||
# It is possible to add a ServiceAccount to this module's Pods, it can be
|
||||
# used in cases where the module is in a private registry and you want to
|
||||
# give access to the registry only to this pod.
|
||||
# NOTE: if not set the root `serviceAccountName` config will be used.
|
||||
serviceAccountName:
|
||||
|
||||
# You can guide where the pods are scheduled on a per-module basis,
|
||||
# as well as for Weaviate overall. Each module accepts nodeSelector,
|
||||
# tolerations, and affinity configuration. If it is set on a per-
|
||||
# module basis, this configuration overrides the global config.
|
||||
|
||||
nodeSelector:
|
||||
tolerations:
|
||||
affinity:
|
||||
|
||||
# by choosing the default vectorizer module, you can tell Weaviate to always
|
||||
# use this module as the vectorizer if nothing else is specified. Can be
|
||||
# overwritten on a per-class basis.
|
||||
# set to text2vec-transformers if running with transformers instead
|
||||
default_vectorizer_module: none
|
||||
|
||||
# It is also possible to configure authentication and authorization through a
|
||||
# custom configmap The authorization and authentication values defined in
|
||||
# values.yaml will be ignored when defining a custom config map.
|
||||
custom_config_map:
|
||||
enabled: false
|
||||
name: 'custom-config'
|
||||
|
||||
# Pass any annotations to Weaviate pods
|
||||
annotations:
|
||||
|
||||
nodeSelector:
|
||||
|
||||
tolerations:
|
||||
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 1
|
||||
podAffinityTerm:
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: "app"
|
||||
operator: In
|
||||
values:
|
||||
- weaviate
|
||||
Reference in New Issue
Block a user