k8s-apps/argocd-apps/pod-cleanup.yaml
root 3ce69b7892
Some checks failed
AI Review / AI Code Review (pull_request) Successful in 1s
PR Checks / Validate & Security Scan (pull_request) Failing after 5s
feat: Add pod-cleanup CronJob + ArgoCD app (Phase 8.4)
Daily cleanup of completed/failed/evicted pods at 03:00 UTC.
Runs on master node with proper RBAC (ServiceAccount + ClusterRole).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 19:57:41 +01:00

23 lines
503 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: pod-cleanup
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: http://10.10.10.1:3000/claude/k8s-apps.git
targetRevision: main
path: apps/pod-cleanup
destination:
server: https://kubernetes.default.svc
namespace: kube-system
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=false