From bd9885a5d67661556c13df35f347de6913276bae Mon Sep 17 00:00:00 2001 From: Adam Hendel Date: Sat, 20 Jan 2024 14:12:28 -0600 Subject: [PATCH] add storage to vectordb app (#494) --- tembo-operator/Cargo.lock | 2 +- tembo-operator/Cargo.toml | 2 +- .../src/stacks/templates/vectordb.yaml | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/tembo-operator/Cargo.lock b/tembo-operator/Cargo.lock index fd203b2d9..84f294416 100644 --- a/tembo-operator/Cargo.lock +++ b/tembo-operator/Cargo.lock @@ -494,7 +494,7 @@ dependencies = [ [[package]] name = "controller" -version = "0.30.3" +version = "0.30.4" dependencies = [ "actix-web", "anyhow", diff --git a/tembo-operator/Cargo.toml b/tembo-operator/Cargo.toml index 4e853bfb6..f12a11419 100644 --- a/tembo-operator/Cargo.toml +++ b/tembo-operator/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "controller" description = "Tembo Operator for Postgres" -version = "0.30.3" +version = "0.30.4" edition = "2021" default-run = "controller" license = "Apache-2.0" diff --git a/tembo-operator/src/stacks/templates/vectordb.yaml b/tembo-operator/src/stacks/templates/vectordb.yaml index 4687e7306..ced04665d 100644 --- a/tembo-operator/src/stacks/templates/vectordb.yaml +++ b/tembo-operator/src/stacks/templates/vectordb.yaml @@ -8,6 +8,8 @@ appServices: env: - name: BATCH_SIZE value: "1000" + - name: XDG_CACHE_HOME + value: /models/.cache routing: - port: 3000 ingressPath: /vectordb @@ -26,6 +28,20 @@ appServices: limits: cpu: 4000m memory: 1500Mi + storage: + volumeMounts: + - mountPath: /models + name: hf-data-vol + volumes: + - ephemeral: + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + name: hf-data-vol trunk_installs: - name: pgmq version: 1.1.1