From 2347d785db589f18f2faf93678333a6ce1d1c8bc Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Sun, 23 Aug 2026 09:46:58 -0700 Subject: [PATCH] Add ArgoCD Application for auto-deployment (poimen-memory-app) --- CLAUDE.md | 28 ++++++++++++++++++++++++++++ k8s/argocd/memory-app.yaml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 k8s/argocd/memory-app.yaml diff --git a/CLAUDE.md b/CLAUDE.md index 41841d4..14d45a0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,3 +70,31 @@ curl http://localhost:8080/health - Continuation chunks split at paragraph, then hard split at char boundaries - All sections emitted as single Record per section (RecordSource interface) + +## ✅ ArgoCD Deployment Setup + +**Application created**: `poimen-memory-app` in ArgoCD +- **Status**: Synced (awaiting image) +- **Watches**: https://forgejo.riotpiao.com/rock/poimen-memory.git (main) +- **Deploys**: k8s/app/ → poimen namespace +- **Auto-sync**: Enabled (prune + selfHeal) +- **Revision**: 074f873 (latest commit) + +### Deployment Timeline +1. ✅ ArgoCD Application created +2. ⏳ Waiting for Forgejo CI to build Docker image +3. ⏳ Once image available → pods will become Ready +4. ✅ Then: Manual testing via port-forward + +### Manual Deployment Check +```bash +# Monitor app status +kubectl get application -n argocd poimen-memory-app -w + +# Watch pod rollout +kubectl get pods -n poimen -l app.kubernetes.io/name=poimen-memory -w + +# When Ready, test +kubectl port-forward -n poimen svc/poimen-memory 8080:80 +curl http://localhost:8080/health +``` diff --git a/k8s/argocd/memory-app.yaml b/k8s/argocd/memory-app.yaml new file mode 100644 index 0000000..9da9403 --- /dev/null +++ b/k8s/argocd/memory-app.yaml @@ -0,0 +1,34 @@ +# Poimen Memory API Server +# Auto-deployed and synced from main branch +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: poimen-memory-app + namespace: argocd + labels: + app.kubernetes.io/name: poimen-memory + app.kubernetes.io/component: api-server + annotations: + argocd.argoproj.io/sync-wave: "72" +spec: + # Use the homelab project (allows poimen*.git repos) + project: homelab + source: + repoURL: https://forgejo.riotpiao.com/rock/poimen-memory.git + targetRevision: main + path: k8s/app + destination: + server: https://kubernetes.default.svc + namespace: poimen + syncPolicy: + automated: + prune: true # Delete resources removed from git + selfHeal: true # Resync if cluster drifts + syncOptions: + - CreateNamespace=true + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m