44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
|
|
---
|
||
|
|
# ArgoCD Application - deploy this once to bootstrap:
|
||
|
|
# kubectl apply -f k8s/argocd-app.yaml
|
||
|
|
#
|
||
|
|
# Pre-requisite: Add the repo to ArgoCD first:
|
||
|
|
# argocd repo add https://repo.adservio.us/ai_approver/ollama-mcp.git \
|
||
|
|
# --username <gitea-user> --password <gitea-token>
|
||
|
|
apiVersion: argoproj.io/v1alpha1
|
||
|
|
kind: Application
|
||
|
|
metadata:
|
||
|
|
name: ollama-mcp
|
||
|
|
namespace: argocd
|
||
|
|
finalizers:
|
||
|
|
- resources-finalizer.argocd.argoproj.io
|
||
|
|
spec:
|
||
|
|
project: default
|
||
|
|
source:
|
||
|
|
repoURL: https://repo.adservio.us/ai_approver/ollama-mcp.git
|
||
|
|
targetRevision: main
|
||
|
|
path: k8s
|
||
|
|
directory:
|
||
|
|
exclude: argocd-app.yaml
|
||
|
|
destination:
|
||
|
|
server: https://kubernetes.default.svc
|
||
|
|
namespace: ai-inference
|
||
|
|
syncPolicy:
|
||
|
|
automated:
|
||
|
|
prune: true
|
||
|
|
selfHeal: true
|
||
|
|
allowEmpty: false
|
||
|
|
syncOptions:
|
||
|
|
- CreateNamespace=true
|
||
|
|
retry:
|
||
|
|
limit: 5
|
||
|
|
backoff:
|
||
|
|
duration: 5s
|
||
|
|
factor: 2
|
||
|
|
maxDuration: 3m
|
||
|
|
ignoreDifferences:
|
||
|
|
- group: apps
|
||
|
|
kind: Deployment
|
||
|
|
jsonPointers:
|
||
|
|
- /spec/replicas
|