From ddb9721ac4329342ee6d740c955f5c95b9aeda4f Mon Sep 17 00:00:00 2001 From: Mohamed AMAZIRH Date: Sat, 15 Mar 2025 11:49:08 +0100 Subject: [PATCH] use application instead of applicationset --- applications/ollama.yaml | 18 +++++++++++ applications/open-webui.yaml | 18 +++++++++++ .../ai-assistant-applicationset.yaml | 30 ------------------- helm-charts-values/ollama/values.yaml | 9 ------ helm-charts-values/open-webui/values.yaml | 12 -------- 5 files changed, 36 insertions(+), 51 deletions(-) create mode 100644 applications/ollama.yaml create mode 100644 applications/open-webui.yaml delete mode 100644 applicationset/ai-assistant-applicationset.yaml delete mode 100644 helm-charts-values/ollama/values.yaml delete mode 100644 helm-charts-values/open-webui/values.yaml diff --git a/applications/ollama.yaml b/applications/ollama.yaml new file mode 100644 index 0000000..4b4b0bc --- /dev/null +++ b/applications/ollama.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ollama +spec: + destination: + namespace: ai-assistant + server: https://kubernetes.default.svc + source: + path: '' + repoURL: gitea.9003009.xyz + targetRevision: '*' + chart: helm-charts/ollama + project: ai-assistant + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/applications/open-webui.yaml b/applications/open-webui.yaml new file mode 100644 index 0000000..e5c6b2f --- /dev/null +++ b/applications/open-webui.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: open-webui +spec: + destination: + namespace: ai-assistant + server: https://kubernetes.default.svc + source: + path: '' + repoURL: gitea.9003009.xyz + targetRevision: '*' + chart: helm-charts/ollama + project: ai-assistant + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/applicationset/ai-assistant-applicationset.yaml b/applicationset/ai-assistant-applicationset.yaml deleted file mode 100644 index 8908a15..0000000 --- a/applicationset/ai-assistant-applicationset.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - name: ai-assistant-applicationset - namespace: ai-assistant -spec: - generators: - - list: - elements: - - appName: ollama - chart: helm-charts/ollama - - appName: open-webui - chart: helm-charts/open-webui - - template: - metadata: - name: '{{appName}}' - spec: - project: ai-assistant - source: - repoURL: gitea.9003009.xyz - targetRevision: '*' - chart: '{{chart}}' - destination: - server: https://kubernetes.default.svc - namespace: ai-assistant - syncPolicy: - automated: - prune: true - selfHeal: true diff --git a/helm-charts-values/ollama/values.yaml b/helm-charts-values/ollama/values.yaml deleted file mode 100644 index 8e910ad..0000000 --- a/helm-charts-values/ollama/values.yaml +++ /dev/null @@ -1,9 +0,0 @@ -replicaCount: 1 -image: - repository: ollama - name: ollama - tag: "" -container: - port: 11434 -service: - port: 11434 diff --git a/helm-charts-values/open-webui/values.yaml b/helm-charts-values/open-webui/values.yaml deleted file mode 100644 index 705a8ad..0000000 --- a/helm-charts-values/open-webui/values.yaml +++ /dev/null @@ -1,12 +0,0 @@ -replicaCount: 1 - -image: - repository: ghcr.io/open-webui - name: open-webui - tag: "" - -ingress: - host: "open-webui.9003009.xyz" - -ollama: - baseUrl: "http://ollama-service:11434" \ No newline at end of file