diff --git a/.gitignore b/.gitignore index 62df402f..630e1972 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ weaviate/charts -weaviate/weaviate-*.tgz +#weaviate/weaviate-*.tgz weaviate/weaviate.tgz weaviate/out.yml tmp/* diff --git a/weaviate/templates/contextionaryDeployment.yaml b/weaviate/templates/contextionaryDeployment.yaml index 6c49c1f3..d01c485d 100644 --- a/weaviate/templates/contextionaryDeployment.yaml +++ b/weaviate/templates/contextionaryDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: contextionary app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "text2vec-contextionary" "replicas" }} selector: @@ -25,6 +26,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname containers: - name: contextionary image: {{ index .Values "modules" "text2vec-contextionary" "registry" }}/{{ index .Values "modules" "text2vec-contextionary" "repo" }}:{{ index .Values "modules" "text2vec-contextionary" "tag" }} diff --git a/weaviate/templates/img2vecNeuralDeployment.yaml b/weaviate/templates/img2vecNeuralDeployment.yaml index f0a404a9..75a97f4d 100644 --- a/weaviate/templates/img2vecNeuralDeployment.yaml +++ b/weaviate/templates/img2vecNeuralDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: {{ index .Values "modules" "img2vec-neural" "fullnameOverride" }} app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "img2vec-neural" "replicas" }} selector: @@ -23,6 +24,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname 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" }} diff --git a/weaviate/templates/multi2vecClipDeployment.yaml b/weaviate/templates/multi2vecClipDeployment.yaml index 5601b4fa..8bb4e799 100644 --- a/weaviate/templates/multi2vecClipDeployment.yaml +++ b/weaviate/templates/multi2vecClipDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: {{ index .Values "modules" "multi2vec-clip" "fullnameOverride" }} app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "multi2vec-clip" "replicas" }} selector: @@ -23,6 +24,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname 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" }} diff --git a/weaviate/templates/nerTransformersDeployment.yaml b/weaviate/templates/nerTransformersDeployment.yaml index 69584960..27b45255 100644 --- a/weaviate/templates/nerTransformersDeployment.yaml +++ b/weaviate/templates/nerTransformersDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: {{ index .Values "modules" "ner-transformers" "fullnameOverride" }} app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "ner-transformers" "replicas" }} selector: @@ -23,6 +24,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname 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" }} diff --git a/weaviate/templates/qnaTransformersDeployment.yaml b/weaviate/templates/qnaTransformersDeployment.yaml index 9ab24511..149969a4 100644 --- a/weaviate/templates/qnaTransformersDeployment.yaml +++ b/weaviate/templates/qnaTransformersDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: {{ index .Values "modules" "qna-transformers" "fullnameOverride" }} app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "qna-transformers" "replicas" }} selector: @@ -23,6 +24,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname 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" }} diff --git a/weaviate/templates/sumTransformersDeployment.yaml b/weaviate/templates/sumTransformersDeployment.yaml index 7ce4caa9..89c99efd 100644 --- a/weaviate/templates/sumTransformersDeployment.yaml +++ b/weaviate/templates/sumTransformersDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: {{ index .Values "modules" "sum-transformers" "fullnameOverride" }} app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "sum-transformers" "replicas" }} selector: @@ -23,6 +24,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname 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" }} diff --git a/weaviate/templates/transformersInferenceDeployment.yaml b/weaviate/templates/transformersInferenceDeployment.yaml index 208897c0..04a58951 100644 --- a/weaviate/templates/transformersInferenceDeployment.yaml +++ b/weaviate/templates/transformersInferenceDeployment.yaml @@ -8,6 +8,7 @@ metadata: app: {{ index .Values "modules" "text2vec-transformers" "fullnameOverride" }} app.kubernetes.io/name: weaviate app.kubernetes.io/managed-by: helm + requiresSoleAccessToGpu: 'true' spec: replicas: {{ index .Values "modules" "text2vec-transformers" "replicas" }} selector: @@ -23,6 +24,18 @@ spec: {{- else if (index .Values "serviceAccountName") }} serviceAccountName: {{ index .Values "serviceAccountName" }} {{- end }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: requiresSoleAccessToGpu + operator: In + values: + - 'true' + topologyKey: kubernetes.io/hostname 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" }} diff --git a/weaviate/weaviate-15.2.0.tgz b/weaviate/weaviate-15.2.0.tgz new file mode 100644 index 00000000..24e8bc87 Binary files /dev/null and b/weaviate/weaviate-15.2.0.tgz differ