freeleaps-ops/jobs/freeleaps-data-backup/deploy-argocd.sh
Nicolas a470476c71 feat: add Freeleaps PVC backup job with ArgoCD deployment
- Add Python backup script with PST timezone support
- Create Helm Chart for flexible configuration
- Add ArgoCD Application for GitOps deployment
- Include comprehensive documentation and build scripts
- Support incremental snapshots for cost efficiency
- Process PVCs independently with error handling
- Add .gitignore to exclude Python cache files
2025-08-05 18:07:05 +08:00

26 lines
753 B
Bash
Executable File

#!/bin/bash
# Deploy script for Freeleaps PVC Backup to ArgoCD
set -e
echo "Deploying Freeleaps PVC Backup to ArgoCD..."
# Apply ArgoCD Application
echo "Applying ArgoCD Application configuration..."
kubectl apply -f argo-app/application.yaml
echo "ArgoCD Application deployed successfully!"
echo ""
echo "To check the status:"
echo "kubectl get applications -n freeleaps-devops-system"
echo ""
echo "To view ArgoCD UI:"
echo "kubectl port-forward svc/argocd-server -n freeleaps-devops-system 8080:443"
echo ""
echo "To check the CronJob after sync:"
echo "kubectl get cronjobs -n freeleaps-prod"
echo ""
echo "To view job logs:"
echo "kubectl get jobs -n freeleaps-prod"
echo "kubectl logs -n freeleaps-prod job/freeleaps-data-backup-<timestamp>"