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>
23 lines
503 B
YAML
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
|