From d2101345dc04de65c48b617ff5c7694e4b57c4bf Mon Sep 17 00:00:00 2001 From: ION606 Date: Fri, 12 Sep 2025 13:46:12 -0400 Subject: [PATCH] more fixes and value files --- apps/children/ollama.yaml | 15 ------------- apps/children/openwebui.yaml | 15 +++---------- apps/children/postgresql.yaml | 17 ++++----------- apps/children/searxng.yaml | 9 +++----- apps/values/openwebui.yaml | 40 +++++++++++++++++++++++++++++++++++ apps/values/postgresql.yaml | 21 ++++++++++++++++++ apps/values/searxng.yaml | 20 ++++++++++++++++++ 7 files changed, 91 insertions(+), 46 deletions(-) delete mode 100644 apps/children/ollama.yaml create mode 100644 apps/values/openwebui.yaml create mode 100644 apps/values/postgresql.yaml create mode 100644 apps/values/searxng.yaml diff --git a/apps/children/ollama.yaml b/apps/children/ollama.yaml deleted file mode 100644 index c70dfd5..0000000 --- a/apps/children/ollama.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: { name: ollama, namespace: ai } -spec: - project: ai-stack - destination: { server: https://kubernetes.default.svc, namespace: ai } - source: - repoURL: https://helm.otwld.com - chart: ollama - targetRevision: "*" - helm: - values: | - service: { type: ClusterIP } - # add gpu values later if your node has one - syncPolicy: { automated: { prune: true, selfHeal: true } } diff --git a/apps/children/openwebui.yaml b/apps/children/openwebui.yaml index ea6c3dc..c42da49 100644 --- a/apps/children/openwebui.yaml +++ b/apps/children/openwebui.yaml @@ -1,6 +1,6 @@ apiVersion: argoproj.io/v1alpha1 kind: Application -metadata: { name: open-webui, namespace: ai } +metadata: { name: openwebui, namespace: argocd } spec: project: ai-stack destination: { server: https://kubernetes.default.svc, namespace: ai } @@ -9,15 +9,6 @@ spec: chart: open-webui targetRevision: "*" helm: - values: | - persistence: - enabled: true - size: 5Gi - service: { type: ClusterIP } - ingress: - enabled: true - className: nginx - hosts: - - host: openwebui.local - paths: [{ path: "/", pathType: Prefix }] + valueFiles: + - apps/values/openwebui.yaml syncPolicy: { automated: { prune: true, selfHeal: true } } diff --git a/apps/children/postgresql.yaml b/apps/children/postgresql.yaml index 1e44fb8..2d062d8 100644 --- a/apps/children/postgresql.yaml +++ b/apps/children/postgresql.yaml @@ -2,21 +2,12 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: { name: postgresql, namespace: ai } spec: - project: ai-stack - destination: { server: https://kubernetes.default.svc, namespace: ai } source: repoURL: https://charts.bitnami.com/bitnami chart: postgresql targetRevision: "*" helm: - values: | - architecture: replication - auth: - username: openwebui - password: openwebui-pass - database: openwebui_db - primary: - persistence: { enabled: true, size: 5Gi } - readReplicas: - replicaCount: 1 - syncPolicy: { automated: { prune: true, selfHeal: true } } + valueFiles: + - apps/values/postgresql.yaml + + syncPolicy: { automated: { prune: true, selfHeal: true } } diff --git a/apps/children/searxng.yaml b/apps/children/searxng.yaml index c938736..c202041 100644 --- a/apps/children/searxng.yaml +++ b/apps/children/searxng.yaml @@ -2,13 +2,10 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: { name: searxng, namespace: ai } spec: - project: ai-stack - destination: { server: https://kubernetes.default.svc, namespace: ai } source: - repoURL: https://charts.kubito.dev + repoURL: https://charts.kubito.dev # alt charts.searxng.org chart: searxng targetRevision: "*" helm: - values: | - service: { type: ClusterIP } - syncPolicy: { automated: { prune: true, selfHeal: true } } + valueFiles: + - apps/values/searxng.yaml diff --git a/apps/values/openwebui.yaml b/apps/values/openwebui.yaml new file mode 100644 index 0000000..7e5b696 --- /dev/null +++ b/apps/values/openwebui.yaml @@ -0,0 +1,40 @@ +image: + repository: ghcr.io/open-webui/open-webui + tag: "main" + pullPolicy: IfNotPresent + +service: + type: NodePort # or ClusterIP if you’ll use ingress below + nodePort: 4000 + +persistence: + enabled: true + size: 5Gi + +ingress: + enabled: false # set true fo http://openwebui.local via nginx + className: nginx + hosts: + - host: openwebui.local + paths: + - path: / + pathType: Prefix + tls: [] # no https bc I lazy + +# NO SECRETS!!! +extraEnvVars: + - name: OLLAMA_BASE_URL + value: "https://mlep.ion606.com" + # use postgres as primary db + - name: DATABASE_URL + value: "postgresql://postgres:mypassword@postgresql-primary.ai.svc.cluster.local:5432/openwebui" + # store vectors in pgvector (on the same postgres) + - name: VECTOR_DB + value: "pgvector" + - name: PGVECTOR_DB_URL + value: "postgresql://postgres:mypassword@postgresql-primary.ai.svc.cluster.local:5432/openwebui" + - name: PGVECTOR_CREATE_EXTENSION + value: "true" + # set canonical url for oauth/web search callbacks, etc. + - name: WEBUI_URL + value: "http://openwebui.local" diff --git a/apps/values/postgresql.yaml b/apps/values/postgresql.yaml new file mode 100644 index 0000000..5dcff51 --- /dev/null +++ b/apps/values/postgresql.yaml @@ -0,0 +1,21 @@ +architecture: replication + +auth: + username: postgres + password: mypassword + database: openwebui + +primary: + persistence: + enabled: true + size: 8Gi + service: + type: ClusterIP + +readReplicas: + replicaCount: 1 + persistence: + enabled: true + size: 8Gi + service: + type: ClusterIP diff --git a/apps/values/searxng.yaml b/apps/values/searxng.yaml new file mode 100644 index 0000000..1e23cd9 --- /dev/null +++ b/apps/values/searxng.yaml @@ -0,0 +1,20 @@ +image: + repository: searxng/searxng + tag: "latest" + +service: + type: NodePort # or ClusterIP if using ingress + # nodePort: 30081 + +ingress: + enabled: false + className: nginx + hosts: + - host: searxng.local + paths: + - path: / + pathType: Prefix +# env: +# SEARXNG_SECRET: "please-change-me" +# # helps with URL generation & results links +# BASE_URL: "http://searxng.local/"