adding kustomization
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: ollama-scheduler
|
||||
namespace: ai
|
||||
labels:
|
||||
repo.ion606.com/ollama-plus: "true"
|
||||
spec:
|
||||
project: ai-stack
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argo
|
||||
source:
|
||||
repoURL: https://git.ion606.com/ion606/ollama-plus
|
||||
targetRevision: main
|
||||
path: manifests/argo-ollama-scheduler
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
@@ -3,6 +3,8 @@ kind: Application
|
||||
metadata:
|
||||
name: coderunner
|
||||
namespace: ai
|
||||
labels:
|
||||
repo.ion606.com/ollama-plus: "true"
|
||||
spec:
|
||||
project: ai-stack
|
||||
destination:
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- argo-ollama-scheduler.yaml
|
||||
- coderunner.yaml
|
||||
- tools.yaml
|
||||
- rag-server.yaml
|
||||
- openwebui.yaml
|
||||
- postgresql.yaml
|
||||
- searxng.yaml
|
||||
- browser.yaml
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
configMapGenerator:
|
||||
- name: ollama-plus-revs
|
||||
literals:
|
||||
- targetRevision=main
|
||||
|
||||
# Inject targetRevision from the ConfigMap into apps (kill me)
|
||||
replacements:
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: ollama-plus-revs
|
||||
fieldPath: data.targetRevision
|
||||
targets:
|
||||
- select:
|
||||
kind: Application
|
||||
labelSelector: repo.ion606.com/ollama-plus=true
|
||||
fieldPaths:
|
||||
- spec.source.targetRevision
|
||||
options:
|
||||
create: true
|
||||
@@ -3,6 +3,8 @@ kind: Application
|
||||
metadata:
|
||||
name: rag-server
|
||||
namespace: ai
|
||||
labels:
|
||||
repo.ion606.com/ollama-plus: "true"
|
||||
spec:
|
||||
project: ai-stack
|
||||
destination:
|
||||
|
||||
@@ -3,6 +3,8 @@ kind: Application
|
||||
metadata:
|
||||
name: tools
|
||||
namespace: ai
|
||||
labels:
|
||||
repo.ion606.com/ollama-plus: "true"
|
||||
spec:
|
||||
project: ai-stack
|
||||
destination:
|
||||
|
||||
Reference in New Issue
Block a user