use application instead of applicationset

This commit is contained in:
Mohamed AMAZIRH 2025-03-15 11:49:08 +01:00
parent 167d4a5615
commit ddb9721ac4
5 changed files with 36 additions and 51 deletions

18
applications/ollama.yaml Normal file
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,9 +0,0 @@
replicaCount: 1
image:
repository: ollama
name: ollama
tag: ""
container:
port: 11434
service:
port: 11434

View File

@ -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"