From cb3ef8a5b978b5df793287bbb085412a6584217a Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Thu, 29 Feb 2024 20:13:31 +0000 Subject: [PATCH] feat: added in ollama server --- argo/cluster/ai/ollama/chart/Chart.lock | 6 +++++ argo/cluster/ai/ollama/chart/Chart.yaml | 12 ++++++++++ argo/cluster/ai/ollama/chart/values.yaml | 16 ++++++++++++++ argo/cluster/ai/ollama/ollama.app.yaml | 22 +++++++++++++++++++ .../{misc => ai}/open-webui/chart/Chart.lock | 0 .../{misc => ai}/open-webui/chart/Chart.yaml | 0 .../{misc => ai}/open-webui/chart/values.yaml | 3 +++ .../open-webui/open-webui.app.yaml | 2 +- 8 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 argo/cluster/ai/ollama/chart/Chart.lock create mode 100644 argo/cluster/ai/ollama/chart/Chart.yaml create mode 100644 argo/cluster/ai/ollama/chart/values.yaml create mode 100644 argo/cluster/ai/ollama/ollama.app.yaml rename argo/cluster/{misc => ai}/open-webui/chart/Chart.lock (100%) rename argo/cluster/{misc => ai}/open-webui/chart/Chart.yaml (100%) rename argo/cluster/{misc => ai}/open-webui/chart/values.yaml (93%) rename argo/cluster/{misc => ai}/open-webui/open-webui.app.yaml (91%) diff --git a/argo/cluster/ai/ollama/chart/Chart.lock b/argo/cluster/ai/ollama/chart/Chart.lock new file mode 100644 index 00000000..8422c84d --- /dev/null +++ b/argo/cluster/ai/ollama/chart/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: ollama + repository: https://otwld.github.io/ollama-helm/ + version: 0.17.0 +digest: sha256:65ce1a191dd9b276e154df24dff27bf503c3e5ed5ceefc3ecf75cf5a64329063 +generated: "2024-02-29T20:10:03.411997488Z" diff --git a/argo/cluster/ai/ollama/chart/Chart.yaml b/argo/cluster/ai/ollama/chart/Chart.yaml new file mode 100644 index 00000000..b72f7bfb --- /dev/null +++ b/argo/cluster/ai/ollama/chart/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: open-webui +description: open-webui chart +type: application + +version: 0.1.0 +appVersion: "1.16.0" + +dependencies: + - name: ollama + repository: https://otwld.github.io/ollama-helm/ + version: 0.17.0 diff --git a/argo/cluster/ai/ollama/chart/values.yaml b/argo/cluster/ai/ollama/chart/values.yaml new file mode 100644 index 00000000..186ceef4 --- /dev/null +++ b/argo/cluster/ai/ollama/chart/values.yaml @@ -0,0 +1,16 @@ +ollama: + persistentVolume: + enabled: true + size: 30Gi + storageClass: smb + + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 1 + preference: + matchExpressions: + - key: quicksync + operator: In + values: + - available diff --git a/argo/cluster/ai/ollama/ollama.app.yaml b/argo/cluster/ai/ollama/ollama.app.yaml new file mode 100644 index 00000000..54f5e04a --- /dev/null +++ b/argo/cluster/ai/ollama/ollama.app.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ollama + namespace: argo + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: ai + server: https://kubernetes.default.svc + project: apps + source: + path: argo/cluster/ai/ollama/chart + repoURL: https://gitlab.com/henrywhitaker3/homelab.git + targetRevision: HEAD + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/argo/cluster/misc/open-webui/chart/Chart.lock b/argo/cluster/ai/open-webui/chart/Chart.lock similarity index 100% rename from argo/cluster/misc/open-webui/chart/Chart.lock rename to argo/cluster/ai/open-webui/chart/Chart.lock diff --git a/argo/cluster/misc/open-webui/chart/Chart.yaml b/argo/cluster/ai/open-webui/chart/Chart.yaml similarity index 100% rename from argo/cluster/misc/open-webui/chart/Chart.yaml rename to argo/cluster/ai/open-webui/chart/Chart.yaml diff --git a/argo/cluster/misc/open-webui/chart/values.yaml b/argo/cluster/ai/open-webui/chart/values.yaml similarity index 93% rename from argo/cluster/misc/open-webui/chart/values.yaml rename to argo/cluster/ai/open-webui/chart/values.yaml index f8293a8c..129bcf72 100644 --- a/argo/cluster/misc/open-webui/chart/values.yaml +++ b/argo/cluster/ai/open-webui/chart/values.yaml @@ -35,6 +35,9 @@ generic: hosts: - ai.plexmox.com + config: + OLLAMA_API_BASE_URL: http://ollama:11434 + pvc: enabled: true size: 20Gi diff --git a/argo/cluster/misc/open-webui/open-webui.app.yaml b/argo/cluster/ai/open-webui/open-webui.app.yaml similarity index 91% rename from argo/cluster/misc/open-webui/open-webui.app.yaml rename to argo/cluster/ai/open-webui/open-webui.app.yaml index a1e205e6..c2ab3abd 100644 --- a/argo/cluster/misc/open-webui/open-webui.app.yaml +++ b/argo/cluster/ai/open-webui/open-webui.app.yaml @@ -11,7 +11,7 @@ spec: server: https://kubernetes.default.svc project: apps source: - path: argo/cluster/misc/open-webui/chart + path: argo/cluster/ai/open-webui/chart repoURL: https://gitlab.com/henrywhitaker3/homelab.git targetRevision: HEAD syncPolicy: